rewrite: add back in bulid-safe angular DI

This commit is contained in:
Tyler Renelle
2013-08-28 00:28:50 -04:00
parent e355627bf0
commit e641fe9cf1
6 changed files with 17 additions and 13 deletions
+3 -2
View File
@@ -4,7 +4,8 @@
The authentication controller (login & facebook)
*/
habitrpg.controller("AuthCtrl", function($scope, $rootScope, Facebook, LocalAuth, User, $http, $location, API_URL) {
habitrpg.controller("AuthCtrl", ['$scope', '$rootScope', 'Facebook', 'LocalAuth', 'User', '$http', '$location', 'API_URL',
function($scope, $rootScope, Facebook, LocalAuth, User, $http, $location, API_URL) {
var runAuth;
var showedFacebookMessage;
$scope.useUUID = false;
@@ -65,4 +66,4 @@ habitrpg.controller("AuthCtrl", function($scope, $rootScope, Facebook, LocalAuth
});
}
};
});
}]);