Open sidebar
app.factory('DashboardService', function DashboardService($http, $rootScope){ return { menu: function() { return $http.get('http://api.local/dashboard').success(function(response) { $rootScope.locations = response; $rootScope.clickCount = 1; }).error(function(response){ $location.path('/login'); }); }, logout: function() { return $http.get('http://api.local/logout'); } }; });
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting