D3u*_*cee 5 javascript polyfills angular-cli angular
我正在研究一些例子并学习角度。使用 Angular cli 创建新项目时,不会生成 polyfills.ts。还有其他人遇到过这个问题吗?这是生成的文件结构。
生成的文件结构

我已尝试手动将 polyfills.ts 文件添加到 src 文件夹,但这似乎仍然不起作用。
小智 6
for this goto angular.json file there you can see polyfills array
where you can import your localize()
**"index": "src/index.html",
"main": "src/main.ts",
"polyfills": [
"zone.js",
"@angular/localize/init"
],
**
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4619 次 |
| 最近记录: |