SHARE
TWEET

Untitled

a guest Oct 21st, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Angular CLI CheatSheet
  2.  
  3. ## First steps
  4.  
  5. ```bash
  6. # install
  7. yarn global add @angular/cli
  8. # update
  9. yarn global upgrade @angular/cli
  10. # ng help
  11. ng new --help
  12. # new project without install
  13. ng new {name} --skip-install=true --style=scss --routing=false --prefix={app} --verbose --force=true
  14. # with install
  15. ng new {name} --skip-install=false --style=scss --routing=false --prefix={app} --verbose --force=true
  16.  
  17. ## Development
  18.  
  19. ```bash
  20. # new lazy load module with route eq "admin"
  21. yarn ng g module dashboard --routing=true --route=admin --module=app/app.module
  22. # new lazy load module of admin eg: 'users'
  23. yarn ng g module dashboard/users --routing=true --route=users --module=app/dashboard/dashboard.module
  24. # new component
  25. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top