Fix Angular problem after uglifying

This commit is contained in:
Gaël Métais
2015-01-08 20:47:57 +01:00
parent 7e3d5d17f8
commit 7c8ffec254
+2 -2
View File
@@ -9,7 +9,7 @@ gradeDirective.directive('grade', function() {
},
template: '<div ng-class="getGrade(score)">{{getGrade(score)}}</div>',
replace: true,
controller : function($scope) {
controller : ['$scope', function($scope) {
$scope.getGrade = function(score) {
if (score > 80) {
return 'A';
@@ -28,6 +28,6 @@ gradeDirective.directive('grade', function() {
}
return 'F';
};
}
}]
};
});