On my angularjs page, I pass global data to another controller using the $ cccorncope angularjs object. In my controller, I can successfully catch the value stored in the $ rootscope object, and the value fills correctly, and I use the value in the contol label. But when I refresh the page, the value disappears. What is the problem with this and how can I deal with this situation.
$ scope.loginname = $ rootScope.curusername;
Thanks and welcome Utpal
source
share