javascript - How to transfer data from one page to another using angular js and Java servlets -


i have created 1 login page in angular js , written servlet login action. trying login username , password. able redirect dashboard page after successful login using $window want show user data on page. how in angularjs , servlets?

use httpservletrequest remote user.

in dashboard controller, fetch remote user via ajax (for example). , set fetched user $rootscope.

as dashboard page loads, first ajax call should fetch user , set fetched user $rootscope.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -