From 0d084fe5bb05999b39368ee13f99738a35e385d0 Mon Sep 17 00:00:00 2001 From: jdat82 Date: Wed, 4 May 2016 21:52:27 +0200 Subject: [PATCH] Removed isolated scope. Indeed, it is limiting (impossibility to use two directives with isolated scope on the same element) and not necessary as `attrs.$observe` is used. It's probably an anti-pattern here. --- angular-imgcache.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/angular-imgcache.js b/angular-imgcache.js index 68172d4b..255e01b8 100644 --- a/angular-imgcache.js +++ b/angular-imgcache.js @@ -39,10 +39,6 @@ angular.module('ImgCache', []) return { restrict: 'A', - scope: { - icBg: '@', - icSrc: '@' - }, link: function(scope, el, attrs) { var setImg = function(type, el, src) {