get rid of ngRoute completely, depend on ui-router instead

This commit is contained in:
Tyler Renelle
2013-10-30 10:31:36 -07:00
parent 8b76b74d78
commit ff3266bac8
8 changed files with 17 additions and 36 deletions

View File

@@ -120,12 +120,12 @@ habitrpg
// main: '@', // true if it's the user's main list
// obj: '='
//},
controller: function($scope, $rootScope){
controller: ['$scope', '$rootScope', function($scope, $rootScope){
$scope.editTask = function(task){
task._editing = !task._editing;
if($rootScope.charts[task.id]) $rootScope.charts[task.id] = false;
};
},
}],
link: function(scope, element, attrs) {
// $scope.obj needs to come from controllers, so we can pass by ref
scope.main = attrs.main;