Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ng generate component my-new-component
- ng g component my-new-component // using the alias
- // components support relative path generation
- // if in the directory src/app/feature/ and you run
- ng g component new-cmp
- // your component will be generated in src/app/feature/new-cmp
- // but if you were to run
- ng g component ./newer-cmp
- // your component will be generated in src/app/newer-cmp
- // if in the directory src/app you can also run
- ng g component feature/new-cmp
- // and your component will be generated in src/app/feature/new-cmp
Add Comment
Please, Sign In to add comment