Convert an Inline SCAM to a Standalone Component. Note: This generator is only supported with Angular versions >= 14.1.0.
This generator allows you to convert an Inline SCAM to a Standalone Component. It's important that the SCAM you wish to convert has it's NgModule within the same file for the generator to be able to correctly convert the component to Standalone.
nx g @nrwl/angular:scam-to-standalone --component=libs/mylib/src/lib/myscam/myscam.component.ts --project=mylib
nx generate scam-to-standalone ...
By default, Nx will search for
scam-to-standalone in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:scam-to-standalone ...
Show what will be generated without writing to disk:
nx g scam-to-standalone ... --dry-run