0

I am trying to make a application in springMvc, velocity with html pages and angularJs for ticket booking. This is my first time to use angularJs.

NavBar

Home | Application Setting | Travel | Bulk Booking | Users | Profile | Announcements | Support Mgmt | Support

3 user groups

 1. Admin. 
 2. Normal Users. 
 3. Agents (with some extra access then Normal).

Access Levels

- Admin - Home, Application Settings , Users, Announcements, Support Mgmt, Profile
- Agent - Home, Bulk Booking, Support, Profile
- Normal Users - Home, Travel, Support,Profile

How to do this with ng-view. Please just point me in right direction. Thanks in advance.

Sanjay Kumar
  • 415
  • 4
  • 9
  • 19

1 Answers1

0

This might be helpful: Authentication in Single Page Applications With Angular.js

directives.js does updateCSS() if user has group (access level is a bitmap of groups) thus showing/hiding menu item.

Menu item would look like <li data-access-level="accessLevels.admin">

routingConfig.js holds logic "if user has access based on his groups".

camelotus
  • 331
  • 2
  • 4