AngularFireシードをダウンロードし、現在取り組んでいるプロジェクトのルートを変更しようとしていますが、今のところ成功していません。「 」を「 」に、「 」を「 」に、「 」を「 」に変更しただけ/home
で/
、/chat
.html/selectcard
テンプレート/login
の/cardcredentials
名前も変更しました。
デプロイされたアプリケーションで空白のページが表示されるようになりました。angular 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
}
})