@nx/angular:scam
Creates a new Angular SCAM.
Creates a new Angular SCAM.
1nx generate scam ...
2By default, Nx will search for scam in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:scam ...
2Show what will be generated without writing to disk:
1nx g scam ... --dry-run
2Generate a component with the exported symbol matching the file name. It results in the component FooComponent at mylib/src/lib/foo.component.ts:
1nx g @nx/angular:scam mylib/src/lib/foo.component.ts
2Generate a component without providing the file extension. It results in the component FooComponent at mylib/src/lib/foo.component.ts:
1nx g @nx/angular:scam mylib/src/lib/foo
2Generate a component with the exported symbol different from the file name. It results in the component CustomComponent at mylib/src/lib/foo.component.ts:
1nx g @nx/angular:scam mylib/src/lib/foo --name=custom
2The file path to the SCAM. Relative to the current working directory.
trueSpecifies if the SCAM should be exported from the project's entry point (normally index.ts). It only applies to libraries.
trueCreate the NgModule in the same file as the component.
DefaultDefault, OnPushThe change detection strategy to use in the new component.
falseSpecifies if the style will contain :host { display: block; }.
falseInclude styles inline in the component.ts file. Only CSS styles can be included inline. By default, an external styles file is created and referenced in the component.ts file.
falseInclude template inline in the component.ts file. By default, an external template file is created and referenced in the component.ts file.
The component symbol name. Defaults to the last segment of the file path.
The prefix to apply to the generated component selector.
csscss, scss, sass, less, noneThe file extension or preprocessor to use for style files, or 'none' to skip generating the style file.
falseDo not create spec.ts test files for the new component.
html-selectorThe HTML selector to use for this component.
falseSpecifies if the component should have a selector or not.
componentAdds a developer-defined type to the filename, in the format name.type.ts.
Emulated, None, ShadowDomThe view encapsulation strategy to use in the new component.
falseSkip formatting files.