title: Can we dynamically assign permissions to certain roles in angular?
body: <p>I'm new to angular and am now developing a role management dashboard where a super-admin can assign and manage roles(possible roles: 'school admin', 'Teacher', 'Student', 'Parent') and their permissions respectively by clicking the check boxes. </p>
  
  <p>NOTE: Refer the image for role management dashboard. <a href="https://i.stack.imgur.com/LJVjR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LJVjR.png" alt=" simple role management dashboard"></a></p>
  
  <p>I found this link "<a href="https://jasonwatmore.com/post/2018/11/22/angular-7-role-based-authorization-tutorial-with-example" rel="nofollow noreferrer">https://jasonwatmore.com/post/2018/11/22/angular-7-role-based-authorization-tutorial-with-example</a>" to be helpful when I tested to assign the permissions to the roles statically. </p>
  
  <p>I also went through this question "<a href="https://stackoverflow.com/questions/55915007/angular-6-role-based-authentication">Angular 6 Role based Authentication</a>", but again the answer for this only helps with static role assignment. </p>
  
  <p>so when a user clicks on the check box, the user should be assigned access to that particular component. I'm wondering is there a way where am user can manage roles and their permissions dynamically from an UI like Angular?If yes, how do we do it? Or any links that relates this would be of great help !!</p>