angularnrwl-nx

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


Solution

  • 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": {} :)