docs: fix schematics' package name for `ng generate` sub-commands (#40846)

PR Close #40846
This commit is contained in:
Alexey Elin 2021-02-14 21:59:54 +03:00 committed by Joey Perrott
parent 67d85b3680
commit 5f0c219883
1 changed files with 2 additions and 2 deletions

View File

@ -76,9 +76,9 @@ The following top-level configuration properties are available for each project,
## Generation schematics ## Generation schematics
Angular generation [schematics](guide/glossary#schematic) are instructions for modifying a project by adding files or modifying existing files. Angular generation [schematics](guide/glossary#schematic) are instructions for modifying a project by adding files or modifying existing files.
Individual schematics for the default Angular CLI `ng generate` sub-commands are collected in the package `@angular`. Individual schematics for the default Angular CLI `ng generate` sub-commands are collected in the package `@schematics/angular`.
Specify the schematic name for a subcommand in the format `schematic-package:schematic-name`; Specify the schematic name for a subcommand in the format `schematic-package:schematic-name`;
for example, the schematic for generating a component is `@angular:component`. for example, the schematic for generating a component is `@schematics/angular:component`.
The JSON schemas for the default schematics used by the CLI to generate projects and parts of projects are collected in the package [`@schematics/angular`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/application/schema.json). The JSON schemas for the default schematics used by the CLI to generate projects and parts of projects are collected in the package [`@schematics/angular`](https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/application/schema.json).
The schema describes the options available to the CLI for each of the `ng generate` sub-commands, as shown in the `--help` output. The schema describes the options available to the CLI for each of the `ng generate` sub-commands, as shown in the `--help` output.