fix minor bug in the front edn
This commit is contained in:
parent
98235837a2
commit
9ca0d595cf
1 changed files with 6 additions and 6 deletions
12
nodejs/public/javascripts/angularApp.js
vendored
12
nodejs/public/javascripts/angularApp.js
vendored
|
@ -7,16 +7,16 @@ app.config(['$stateProvider', '$urlRouterProvider',function($stateProvider, $url
|
|||
url: '/home',
|
||||
templateUrl: '/home.html',
|
||||
controller: 'MainCtrl',
|
||||
resolve: {
|
||||
postPromise: ['arduino', function(arduino) {
|
||||
return arduino.getRCs();
|
||||
}]
|
||||
},
|
||||
onEnter: ['$state', 'auth', function ($state, auth) {
|
||||
if (!auth.isLoggedIn()) {
|
||||
$state.go('login');
|
||||
}
|
||||
}]
|
||||
}],
|
||||
resolve: {
|
||||
postPromise: ['arduino', function(arduino) {
|
||||
return arduino.getRCs();
|
||||
}]
|
||||
}
|
||||
|
||||
})
|
||||
.state('login', {
|
||||
|
|
Reference in a new issue