added missing injection point

This commit is contained in:
Athou
2013-04-30 23:06:41 +02:00
parent 4cbd77ca03
commit b8d9663365

View File

@@ -8,7 +8,7 @@ module.directive('favicon', function() {
},
replace : true,
template : '<img ng-src="{{iconUrl()}}" class="favicon" onError="this.src=\'images/default_favicon.gif\'"></img>',
controller : function($scope) {
controller : ['$scope', function($scope) {
$scope.iconUrl = function() {
var url = $scope.url;
@@ -25,7 +25,7 @@ module.directive('favicon', function() {
iconUrl += '?defaulticon=none';
return iconUrl;
};
}
}]
};
});