6 min readFeb 13, 2019
There is almost no application out there without authentication and restricted areas, right? With this article I will explain you how to handle restricted routes in Angular with Guards and Http requests, the real life way.
Authentication
The whole authentication logic will be kept in a separated module called AuthModule.
Let’s begin by creating it.
$ ng generate module auth