I have two questions.
how to pass param to a filter function.
say for example:
item in masterData|filter1:masterdata|filter2:outputFromfilter1, myparam | filter3:outputFromfilter2, myparam1,myparam2how to access the controller
$scopeinside the filter function.animateAppModule.filter( 'distinct' , function(){ return function(masterdata){ //HOW TO ACCESS THE $scope HERE } })
Here is a fiddle. Pls. look in to the firebug console, to see that the parameters passed to the filter is undefined.