TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/kevinrodriguezmorales/siget/llms.txt
Use this file to discover all available pages before exploring further.
ng generate command (aliased as ng g) creates new code files for your Angular application using Angular schematics. Each schematic produces a consistent set of files — TypeScript class, HTML template, stylesheet, and spec file — wired up and ready to use. Siget configures SCSS as the default style format for all generated components via the schematics section in angular.json.
Synopsis
Schematics Reference
| Schematic | Alias | Description |
|---|---|---|
component | c | Standalone Angular component with template, style, and spec files |
directive | d | Angular attribute or structural directive |
pipe | p | Angular pipe for transforming values in templates |
service | s | Injectable Angular service |
guard | g | Route guard to control navigation |
interceptor | — | HTTP interceptor for request/response handling |
resolver | r | Route data resolver that prefetches data before navigation |
module | m | NgModule (optional in standalone-first Angular 21 apps) |
Examples
Generated Component Structure
Runningng generate component features/user-profile produces the following files inside src/app/:
SCSS is the default style format for all generated components. This is controlled by the Every new component’s stylesheet will be a
schematics section in angular.json:.scss file, and the inlineStyleLanguage for the build is also set to scss.Inline Template and Style Flags
For small, self-contained components you can skip the separate HTML and SCSS files and keep everything in the TypeScript class file:| Flag | Description |
|---|---|
--inline-template | Embed the template directly in the @Component decorator instead of a separate .html file |
--inline-style | Embed styles directly in the @Component decorator instead of a separate .scss file |