

Npm link is needed because by default the globally installed just loads

It should be done due to changing of package's name and scope from angular-cli to new foo If you're using Angular CLI 1.0.0-beta.28 or less, you need to uninstall angular-cli package. This should add the new component, directive or pipe reference to the new-module you've created. call ng g component new-module/new-component.ng g module new-module to create a new module.If you need to add this references to another custom module, follow these steps: You can find all possible blueprints in the table below: ScaffoldĪngular-cli will add reference to components, directives and pipes automatically in the. # and your component will be generated in src/app/feature/new-cmp # your component will be generated in src/app/newer-cmp # if in the directory src/app you can also run # your component will be generated in src/app/feature/new-cmp # but if you were to run Ng g component my-new-component # using the alias # components support relative path generation # if in the directory src/app/feature/ and you run
