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
@@ -1,6 +1,7 @@
"use strict";
habitrpg.controller("TaskDetailsCtrl", function($scope, $rootScope, $location, User) {
habitrpg.controller("TaskDetailsCtrl", ['$scope', '$rootScope', '$location', 'User',
function($scope, $rootScope, $location, User) {
$scope.save = function(task) {
var log, setVal;
setVal = function(k, v) {
@@ -54,4 +55,4 @@ habitrpg.controller("TaskDetailsCtrl", function($scope, $rootScope, $location, U
$scope.editedTask = null;
$scope.editing = false;
};
});
}]);