Angular CLI: 12.2.0
Node: 16.6.1
Package Manager: yarn 1.22.10
OS: darwin x64
Angular: 12.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1202.0
@angular-devkit/build-angular 12.2.0
@angular-devkit/core 12.2.0
@angular-devkit/schematics 12.2.0
@schematics/angular 12.2.0
rxjs 6.6.7
typescript 4.3.5
π Bug report
Command (mark with an
x)Is this a regression?
N/A
Description
One should be able to generate angular application with
changeDetection.OnPushcomponents.π¬ Minimal Reproduction
npx @angular/cli@12 new web-apps --create-application falsecd web-appsyarn ng config schematics.@schematics/angular:component.changeDetection OnPushyarn ng generate application admin-dashboard --prefix ad --routing --style cssprojects/admin-dashboard/src/app/app.component.tsand there is no changeDetection set.π₯ Exception or Error
π Your Environment
Anything else relevant?
yarn ng generate component components/home --project admin-dashboardandchangeDetectionis set toonPushfor generatedprojects/admin-dashboard/src/app/components/home/home.component.ts