Open mcshaz opened 8 years ago
Thank you for this excellent piece of angular code. This is probably not an issue, but the parentController has the function
var setCurrentUser = function(){ $scope.currentUser = $rootScope.currentUser; }
Isn't enclosing the page contents in a parentController exactly for the specific reason of avoiding use of $rootScope (other than listeners)?
I ended up not even storing the currentUser in the rootScope, rather using the UserSession singleton :)
Thank you for this excellent piece of angular code. This is probably not an issue, but the parentController has the function
Isn't enclosing the page contents in a parentController exactly for the specific reason of avoiding use of $rootScope (other than listeners)?