fixing ctrl
This commit is contained in:
parent
68607255a3
commit
0a63695869
|
@ -10,7 +10,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<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="search-bar" ui-view="header"></div>
|
||||||
<div class="container main-content">
|
<div class="container main-content">
|
||||||
<div class="menu-container" ui-view="menu"></div>
|
<div class="menu-container" ui-view="menu"></div>
|
||||||
|
|
|
@ -11,6 +11,8 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
|
||||||
data: { requiresLogin: false },
|
data: { requiresLogin: false },
|
||||||
url: '/splash-page',
|
url: '/splash-page',
|
||||||
templateUrl: '/templates/splash-page.html',
|
templateUrl: '/templates/splash-page.html',
|
||||||
|
controller: 'loginCtrl',
|
||||||
|
controllerAs: 'vm'
|
||||||
})
|
})
|
||||||
.state('app',{
|
.state('app',{
|
||||||
data: { requiresLogin: true },
|
data: { requiresLogin: true },
|
||||||
|
@ -18,8 +20,8 @@ app.config(['$stateProvider', '$urlRouterProvider', 'localStorageServiceProvider
|
||||||
views: {
|
views: {
|
||||||
'header': {
|
'header': {
|
||||||
templateUrl: '/templates/partials/header.html',
|
templateUrl: '/templates/partials/header.html',
|
||||||
controller: 'loginCtrl',
|
// controller: 'loginCtrl',
|
||||||
controllerAs: 'vm'
|
// controllerAs: 'vm'
|
||||||
},
|
},
|
||||||
'menu': {
|
'menu': {
|
||||||
templateUrl: '/templates/partials/menu.html'
|
templateUrl: '/templates/partials/menu.html'
|
||||||
|
|
Loading…
Reference in New Issue