Hi ,
Refer below links,
https://gist.github.com/btroncone/cebec10b89540f5501dd 
https://medium.com/@eliasmsedano/angular-4-how-to-check-authorization-based-on-role-and-entity-states-cf0282280961
https://jasonwatmore.com/post/2018/11/22/angular-7-role-based-authorization-tutorial-with-example
https://auth0.com/blog/real-world-angular-series-part-4/