Blame view
app/scripts/controllers.js
652 Bytes
e4e496d13
|
1 |
/** |
9835dbe3e
|
2 |
* acuefuel - Responsive Admin Theme |
e4e496d13
|
3 4 5 6 7 8 |
* */ /** * MainCtrl - controller */ |
d5fb510e5
|
9 |
function MainCtrl($scope, $location, $state, LoginService) { |
e4e496d13
|
10 11 12 13 14 |
$scope.userName = 'Dylan Goodwin'; $scope.helloText = 'Welcome in SeedProject'; $scope.descriptionText = 'It is an application skeleton for a typical AngularJS web app. You can use it to quickly bootstrap your angular webapp projects and dev environment for these projects.'; |
a80703599
|
15 16 17 |
$scope.logout = function(){ console.log("Called") LoginService.logout(); |
d5fb510e5
|
18 |
$state.go('login') |
a80703599
|
19 |
} |
e4e496d13
|
20 21 22 23 |
}; angular |
9835dbe3e
|
24 |
.module('acuefuel') |
e4e496d13
|
25 |
.controller('MainCtrl', MainCtrl) |