From 9ca0d595cf5ef7c56176b752d3674687087531cc Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Tue, 23 Feb 2016 22:57:11 +0100 Subject: [PATCH] fix minor bug in the front edn --- nodejs/public/javascripts/angularApp.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nodejs/public/javascripts/angularApp.js b/nodejs/public/javascripts/angularApp.js index f1daec6..8e5defc 100644 --- a/nodejs/public/javascripts/angularApp.js +++ b/nodejs/public/javascripts/angularApp.js @@ -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', {