This project show a example how use routes from a external library. In this case we created the login library manually. You can create your own library and publish on npm. Example: npm publish ./dist/login.tgz (create de .tgz for the build folder).
- Run
ng serve
for a dev server. Navigate tohttp://localhost:4200/
. - To test the route of the login library navigate for:
http://localhost:4200/login
.
The LoginRoutingModule is imported in AppRoutingModule!
- Run
ng build
to build the project. The build artifacts will be stored in thedist/
directory. Use the--prod
flag for a production build. - Run
ng build login
to build de library login.
This project was generated with Angular CLI version 7.3.8.