I have created a Auth Manager in Angular2 to restrict Component access directly . I am still new to angular and learning the concepts.
I was able to restrict the use
You can use service and set the value you want to display in component inside the AuthManager.