javascript - Angularjs multiple index page -


i have 2 page "login" , "dashboard". if user unauthenticate login page loaded, after login success page redirect dashboard page.

in scenario use obfuscator dashboard page, after user login browser received secret key server decode. have split app 2 page, please ignore suggest combine them single page.

have create 2 index page, 2 app module not known how load index page base on authentication.

you can use ng-route or ui router in inorder route different pages based on token.

here's documentation link , example.


Comments

Popular posts from this blog

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -