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 servefor 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 buildto build the project. The build artifacts will be stored in thedist/directory. Use the--prodflag for a production build. - Run
ng build loginto build de library login.
This project was generated with Angular CLI version 7.3.8.