fixing ctrl

This commit is contained in:
Jon Lambson 2017-08-18 16:14:51 -06:00
parent 68607255a3
commit 0a63695869
2 changed files with 5 additions and 3 deletions

View File

@ -10,7 +10,7 @@
</head>
<body>
<div ui-view class="splash-page" ng-controller="loginCtrl as vm"></div>
<div ui-view class="splash-page"></div>
<div class="search-bar" ui-view="header"></div>
<div class="container main-content">
<div class="menu-container" ui-view="menu"></div>

View File

@ -11,6 +11,8 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
data: { requiresLogin: false },
url: '/splash-page',
templateUrl: '/templates/splash-page.html',
controller: 'loginCtrl',
controllerAs: 'vm'
})
.state('app',{
data: { requiresLogin: true },
@ -18,8 +20,8 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
views: {
'header': {
templateUrl: '/templates/partials/header.html',
controller: 'loginCtrl',
controllerAs: 'vm'
// controller: 'loginCtrl',
// controllerAs: 'vm'
},
'menu': {
templateUrl: '/templates/partials/menu.html'