An example of how you can implement role based authorization / access control using Angular 7 and TypeScript. This example has been extended from ng-jwt-authentication to include role based authorization / access control on top of JWT authentication.