fixing ctrl
This commit is contained in:
parent
68607255a3
commit
0a63695869
|
@ -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>
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue