Angular commands

 


Angular 

Generate Module:

ng g m modules\<module-name> --routing


Angular commands 


Generate Component:

ng g c modules\<module-name>\components\<component-name>


Generate Model (Class):

ng g class modules\<module-name>\models\<model-name> --type=model


Generate Service:

ng g s modules\<module-name>\services\<service-name>


Generate guard:

ng g guard shared\guard/...

Share this

Related Posts

Previous
Next Post »