You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We feel that this is trivial enough to do and doesn't warrant to be included as an extra option in the various schematics. The fact that this option in the application schematic is already ambiguous enough.
Remember that you can use the ng config command to set up the options.
ng new web-apps --no-create-application
ng config schematics.@schematics/angular:component.changeDetection OnPush
ng generate application app-one
🚀 Feature request
Command (mark with an
x
)Description
User should be able to generate angular applications/libraries with change detection enabled.
npx @angular/cli@12 new web-apps --create-application false --changeDetection onPush
Describe the solution you'd like
Provide a flag to enable change detection
Describe alternatives you've considered
Manually edit
angular.json
and append"changeDetection": "OnPush"
under@schematics/angular:component
for every workspace application/libraryprojects/<app>/src/app/app.component.ts
and appendchangeDetection: ChangeDetectionStrategy.OnPush
to@Component
decoratorThe text was updated successfully, but these errors were encountered: