Currently we are migrating our application from JSP to AngularJS. The organization decided to do it one module at a time. One of the challenge that we are encountering is passing of the user data from JSP to AngularJS (e.g. index.html).
We want that if the AngularJS module is invoked, the system will re-route to the index.html which is being managed by AngularJS.
My question is what are the possible ways that we could do to transfer the user data (e.g. username) from the JSP to index.html.
Possible scenario:
- User login to the system
- User go to Angular manage module.
- System will redirect the user to index.html (AngularJS)
- index.html will have the user credential (e.g. username and password)
- AngularJS will manage user's action in index.html and request to a RESTful service using the user's credential.
TIA