I have a angular2 active guard which handle if the user is not logged in, redirect it to login page:
import { Injectable } from \"@angular/core\";
import {
I think you should implement "child routing" which allow you to have a parent (with a path "admin" for example) and his childs.
Then you can apply a canactivate to the parent which will automatically restrict the access to all his child. For example if I want to access "admin/home" I'll need to go throught "admin" which is protectected by canActivate. You can even define a parent with an empty path "" if you want