Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting OnPush as default for all applications in nrwl-nx

Is there a way to have all components generated with OnPush?

Similar to: ng config schematics.@schematics/angular.component.changeDetection OnPush

like image 453
Mackelito Avatar asked Oct 23 '25 19:10

Mackelito


1 Answers

found the solutions to my question :)

just add

"@schematics/angular:component": {
      "style": "scss",
      "changeDetection": "OnPush"
 }

to yor workspace.json file at the very end of "schematics": {} :)

like image 65
Mackelito Avatar answered Oct 26 '25 10:10

Mackelito



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!