This project is using angular cli to create angular app and trying to demonstrate how can we create our custom library and use it in example application.
npm run test:lib
npm run test:lib:watch
npm run build:lib
ng g m items --app=lib
ng g c containers\product-image-container --app=lib
In order to start example app please run below cli command and navigate to http://localhost:4210/
url.
npm run example:start
npm run example:test
Suppose I want to create products module in eample app. Here is the cli command:
ng g m products
suppose I have a feature module called as products
and now I want to create an add product container component
inside it. Here is the cli command for that:
ng g c products/containers/add-product-container
ng g c products\components\product-image