Skip to content

Instantly share code, notes, and snippets.

@nemrosim
Last active August 27, 2019 18:53
Show Gist options
  • Save nemrosim/cdbd08f479e84d868eb6fe8b2f10d559 to your computer and use it in GitHub Desktop.
Save nemrosim/cdbd08f479e84d868eb6fe8b2f10d559 to your computer and use it in GitHub Desktop.
[ANGULAR CLI] commands for cli #Angular #CLI
// vim: syntax=javascript
// angular, create new project named "doomsday"
ng new doomsday
// angular, generate component
ng g c welcome-component
ng g g - generate guard
ng g m products/product --flat -m app
// angular, generate module in shared folder, with "shared" name, do not create another folder, import to products
ng g m shared/shared --flat -m products/product.module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment