Skip to content

Commit

Permalink
Merge pull request siddii#14 from aeife/fixUrlObserve
Browse files Browse the repository at this point in the history
fix $attrs.$observe
  • Loading branch information
siddii committed Nov 3, 2015
2 parents 030b905 + 489d23d commit 07addea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ angular.module('feeds-directives', []).directive('feed', ['feedService', '$compi
}
}
}
$attrs.observe('url', function(url){

$attrs.$observe('url', function(url){
feedService.getFeeds(url, $attrs.count).then(function (feedsObj) {
if ($attrs.templateUrl) {
$http.get($attrs.templateUrl, {cache: $templateCache}).success(function (templateHtml) {
Expand Down

0 comments on commit 07addea

Please sign in to comment.