Professional Documents
Culture Documents
~ Yair Carreno
COMMANDS IN ANGULAR CLI: UNA LISTA DE LOS COMANDOS MÁS USADOS DURANTE
LA IMPLEMENTACIÓN.
Yair Carreno 15:03
You can download the PDF format in SpeakerDeck Commons Commands Angular CLI
https://www.yaircarreno.com/2017/04/commands-in-angular-cli.html?m=0 1/5
1/10/24, 6:31 PM Commands in Angular CLI: Una lista de los comandos más usados durante la implementación. ~ Yair Carreno
Generate projects with routing class include, however you need to add the new components into
routing manually:
ng new [project's name] --ng4 --routing
Generating components
ng g c [component's name]
Generating directives
ng g d [directive's name]
Generating services
ng g s [service’s name]
Generating classes
https://www.yaircarreno.com/2017/04/commands-in-angular-cli.html?m=0 2/5
1/10/24, 6:31 PM Commands in Angular CLI: Una lista de los comandos más usados durante la implementación. ~ Yair Carreno
ng g cl [class’s name]
Generating interfaces
ng g i [interface’s name]
Generating enums
ng g e [enum’s name]
Generating pipes
ng g p [pipe’s name]
Linting
Generating modules
Generate admin.module.ts:
ng g module [module’s name]
https://www.yaircarreno.com/2017/04/commands-in-angular-cli.html?m=0 3/5
1/10/24, 6:31 PM Commands in Angular CLI: Una lista de los comandos más usados durante la implementación. ~ Yair Carreno
Generating guards
Common commands
Build commands
ng build
Serving commands
ng serve -o
https://www.yaircarreno.com/2017/04/commands-in-angular-cli.html?m=0 4/5
1/10/24, 6:31 PM Commands in Angular CLI: Una lista de los comandos más usados durante la implementación. ~ Yair Carreno
Testing commands
ng test --code-coverage
You can download the PDF format in SpeakerDeck Commons Commands Angular CLI
https://www.yaircarreno.com/2017/04/commands-in-angular-cli.html?m=0 5/5