2014-10-06 37 views
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 
    } 
    }) 
+0

什么错误消息打印在JS控制台? – Kato 2014-10-08 22:40:35

回答

0

当您下载angularfire种子时,您必须进行凉亭安装。我不确定为什么这些不会自动安装,因为它们必须在那里才能运行。