@@ -322,7 +322,7 @@ app.config(["$routeProvider", function($routeProvider) {
322322 // Auth refers to our $firebaseAuth wrapper in the factory below
323323 " currentAuth" : [" Auth" , function (Auth ) {
324324 // $requireSignIn returns a promise so the resolve waits for it to complete
325- // If the promise is rejected, it will throw a $stateChangeError (see above)
325+ // If the promise is rejected, it will throw a $routeChangeError (see above)
326326 return Auth .$requireSignIn ();
327327 }]
328328 }
@@ -336,7 +336,7 @@ app.controller("HomeCtrl", ["currentAuth", function(currentAuth) {
336336
337337app .controller (" AccountCtrl" , [" currentAuth" , function (currentAuth ) {
338338 // currentAuth (provided by resolve) will contain the
339- // authenticated user or null if not signed in
339+ // authenticated user or throw a $routeChangeError (see above) if not signed in
340340}]);
341341
342342app .factory (" Auth" , [" $firebaseAuth" ,
@@ -398,7 +398,7 @@ app.controller("HomeCtrl", ["currentAuth", function(currentAuth) {
398398
399399app .controller (" AccountCtrl" , [" currentAuth" , function (currentAuth ) {
400400 // currentAuth (provided by resolve) will contain the
401- // authenticated user or null if not signed in
401+ // authenticated user or throw a $stateChangeError (see above) if not signed in
402402}]);
403403
404404app .factory (" Auth" , [" $firebaseAuth" ,
0 commit comments