fixed error on admin/login

parent 944b0459
......@@ -3,10 +3,10 @@
//-------------------
// Admin Controller
//-------------------
dashboardControllers.controller('AdminCtrl', function AdminCtrl($scope, $window) {
dashboardControllers.controller('AdminCtrl', function AdminCtrl($rootScope, $window) {
// The last parameter, config, is injected from config.js (defined in dashboardConfig module)
// Assign values this way (like an object) to ensure it's the parent scope $scope.user.name ='Super';
$scope.user = JSON.parse($window.sessionStorage.user);
$rootScope.user = JSON.parse($window.sessionStorage.user);
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment