有没有办法用OnPush生成所有的组件?
类似于:ng config schematics.@schematics/angular.component.changeDetection OnPush
发布于 2020-05-08 00:22:11
找到我的问题的解决方案:)
只需添加
"@schematics/angular:component": {
"style": "scss",
"changeDetection": "OnPush"
}要将workspace.json文件放在"schematics": {}的末尾:)
https://stackoverflow.com/questions/61654128
复制相似问题