Guest User

Untitled

a guest
May 23rd, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ng generate component my-new-component
  2. ng g component my-new-component // using the alias
  3.  
  4. // components support relative path generation
  5. // if in the directory src/app/feature/ and you run
  6. ng g component new-cmp
  7. // your component will be generated in src/app/feature/new-cmp
  8. // but if you were to run
  9. ng g component ./newer-cmp
  10. // your component will be generated in src/app/newer-cmp
  11. // if in the directory src/app you can also run
  12.  
  13. ng g component feature/new-cmp
  14.  
  15. // and your component will be generated in src/app/feature/new-cmp
Add Comment
Please, Sign In to add comment