netodeolino / routes-from-library

Use routes from a external library in your angular web application

Repository from Github https://github.comnetodeolino/routes-from-libraryRepository from Github https://github.comnetodeolino/routes-from-library

Routes From Library

Codacy Badge

alt alt alt

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).

Development server

  • Run ng serve for a dev server. Navigate to http://localhost:4200/.
  • To test the route of the login library navigate for: http://localhost:4200/login.

The LoginRoutingModule is imported in AppRoutingModule!

Build

  • Run ng build to build the project. The build artifacts will be stored in the dist/ 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.

About

Use routes from a external library in your angular web application

License:MIT License


Languages

Language:TypeScript 74.5%Language:JavaScript 18.5%Language:HTML 6.5%Language:CSS 0.5%