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

    c - Mpirun hangs when mpi send and recieve is put in a loop -

    python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

    java - Unable to get JDBC connection in Spring application to MySQL -