/angular-route-protection

Angular Route protection example

Primary LanguageJavaScript

Angular 1.x Route protection example

This is a basic and client side only example !

You can see this example working at https://igor-lopes.github.io/angular-route-protection/

Usage

In order to authenticate and test routes authorization, you must enter the credentials:

| Email | Password | |----------|:-------------:|------:| | user@email.com | 1234 |

User credentials are stored in a JSON object in the AuthService.

You can check your browser console for the app route changes and authentication status.