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
Post a Comment