First, install Yeoman and generator-angular-2-lazy using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-angular-2-lazy
Then generate your new project:
yo angular-2-lazy
this will create base structure like AngularClass
integration
- angular http interceptor
- i18n from @ngx-translate/core and @biesbjerg/ngx-translate-extract
- sample for pre/lazy loaded moudles and route
- sample for auth-gaurd service
sub generator
yo angular-2-lazy:component
yo angular-2-lazy:page --optional service integration
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
MIT © nirajkashyap