Error: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.
Run Code Online (Sandbox Code Playgroud)
在具有相同项目的 Angular 9 中没有这样的错误。
Angular10 现在添加了 tsconfig.base.json 文件。
tsconfig.json 文件更新为:
{
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
Run Code Online (Sandbox Code Playgroud)
tsconfig.app.json:
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.d.ts"
]
}
Run Code Online (Sandbox Code Playgroud)
tsconfig.base.json:
{
"compileOnSave": false, …Run Code Online (Sandbox Code Playgroud) 在 Angular Material 中使用 MatDialog 打开对话框不会阻止背景内容滚动
使用 Augury Chrome 扩展调试 Angular 项目时,存在组件树选项卡,但 NgModules 和路由器树选项卡不可见使用 Angular 9.1.3 和 Augury (1.25.2) 作为 Chrome 扩展