How can I do role based access for the pages using AngularJS? -


I want to have a role-based access to AngularJS pages.

The user should be shown on the basis of the roll page.

Can someone give me an example? Which should be the best solution.

The page is very easy to use depending on the role.

  • Let's assume that there are three roles in the Web / Dashboard, like admin, support, employee.
  • Assign the field to users as userrole. Now assign

    Now the roles for those pages are ng-if = "userrole == 'admin' "Or vice versa

  • html>

  • Comments

    Popular posts from this blog

    python - how we can use ajax() in views.py in django? -

    matlab - Using loops to get multiple values into a cell -

    python - Sequence Pattern recognition with Pybrain -