0
我下載了AngularFire種子,我試圖改變我工作的項目的路線,但到目前爲止我還沒有成功。我簡單地將'/home
'更改爲'/
'和'/chat
'至'/selectcard
'和'/login
'至'/cardcredentials
',因此,我也更改了.html模板的名稱。爲什麼是AngularFire路由渲染空白頁
現在我在部署的應用程序中收到空白頁面。我已經傾注了角度的ngroute文檔,但我無法弄清楚我錯在哪裏。
.constant('ROUTES', {
'/': {
templateUrl: 'partials/home.html',
controller: 'HomeCtrl',
resolve: {
// forces the page to wait for this promise to resolve before controller is loaded
// the controller can then inject `user` as a dependency. This could also be done
// in the controller, but this makes things cleaner (controller doesn't need to worry
// about auth status or timing of displaying its UI components)
user: ['simpleLogin', function(simpleLogin) {
return simpleLogin.getUser();
}]
}
},
'/SelectCard': {
templateUrl: 'partials/selectcard.html',
controller: 'ChatCtrl'
},
'/CardCredentials': {
templateUrl: 'partials/cardcredentials.html',
controller: 'LoginCtrl'
},
'/OffersDetails': {
templateUrl: 'partials/offerdetails.html',
controller: 'AccountCtrl',
// require user to be logged in to view this route
// the whenAuthenticated method below will resolve the current user
// before this controller loads and redirect if necessary
authRequired: true
}
})
什麼錯誤消息打印在JS控制檯? – Kato 2014-10-08 22:40:35