Last active
December 16, 2015 23:39
-
-
Save hunterloftis/5515427 to your computer and use it in GitHub Desktop.
Using filters programmatically in a custom directive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// current (works) | |
<div ng-repeat='movie in movies.titles | subcategories:categoryList()'> | |
// goal: | |
<div ng-repeat='filteredMovies()'> | |
link: function(scope, element, attrs) { | |
scope.filteredMovies = function() { | |
return appliedFilter(); // this is what I don't get | |
// guessing something like subcategoriesFilter.apply(scope.categoryList()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment