Read the article from @medium https://medium.com/@ryanchenkie_40935/angular-authentication-using-route-guards-bf7a4ca13ae3