incremental
diff --git a/static/js/bmcApp.js b/static/js/bmcApp.js
index 7d31cc2..2678ac0 100644
--- a/static/js/bmcApp.js
+++ b/static/js/bmcApp.js
@@ -10,6 +10,8 @@
'ngResource'
]);
+
+
app.controller('MainCtrl', ['$scope', function($scope) {
}]);
@@ -72,9 +74,14 @@
app.run(['$rootScope', '$cookieStore', '$state', '$resource', 'AuthenticationService', '$http', '$templateCache',
function($rootScope, $cookieStore, $state, $resource, AuthenticationService, $http, $templateCache) {
+
+ $http.get('static/partial-login.html', {cache:$templateCache});
+ $http.get('static/partial-kvm.html', {cache: $templateCache});
+
if ($rootScope.globals == undefined){
$rootScope.globals = {};
}
+
// keep user logged in after page refresh
AuthenticationService.RestoreCredientials();
@@ -90,8 +97,7 @@
$state.go('login');
}
});
-
- $http.get('static/partial-kvm.html', { cache: $templateCache });
+
}
]);