是否可以通过OnPush生成所有组件?
类似于:ng config schematics.@schematics/angular.component.changeDetection OnPush
答案 0 :(得分:0)
找到了我的问题的解决方案:)
只需添加
"@schematics/angular:component": {
"style": "scss",
"changeDetection": "OnPush"
}
在workspace.json
的末尾添加"schematics": {}
文件:)