From 7c3d29980502a03ff06d03685a91e57dfdeffd65 Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 9 Apr 2013 11:33:15 +0200 Subject: [PATCH] favicon directive --- src/main/webapp/directives/category.html | 2 +- src/main/webapp/js/directives.js | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/directives/category.html b/src/main/webapp/directives/category.html index a5ad7a6a..c5494d68 100644 --- a/src/main/webapp/directives/category.html +++ b/src/main/webapp/directives/category.html @@ -17,7 +17,7 @@ - + {{formatFeedName({feed:feed})}} diff --git a/src/main/webapp/js/directives.js b/src/main/webapp/js/directives.js index a2c7758e..dcdf2aef 100644 --- a/src/main/webapp/js/directives.js +++ b/src/main/webapp/js/directives.js @@ -1,6 +1,17 @@ var module = angular.module('commafeed.directives', []); -app.directive('ngBlur', function() { +module.directive('favicon', function() { + return { + restrict : 'E', + scope : { + url : '=' + }, + replace : true, + template : '' + } +}); + +module.directive('ngBlur', function() { return { restrict : 'A', link : function(scope, elm, attrs) {