In this article I will create step by step an Authentication library and along the way will describe Interceptors and Guards.

Application Description

This application will have these pages: Login, Home, User Dashboard and Admin Dashboard which will have different access levels as described in the table below.

For the implementation we will need an Angular Application that you can set up following these steps:

  1. ng new auth-demo Create a new Angular Application
  2. ng g lib authentication Generate the authentication library
  3. ng g c home Generate the Home Component
  4. ng g c user-dashboard Generate the User Dashboard Component
  5. ng g…

AG Dev

Senior Front End Software Engineer focused on Angular. Passionate about learning new skills and sharing my knowledge. Blog in progress.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store