I have a photo carousel directive like that
<mz-photo-carousel items-per-slide=6
carousel-data="vm.carouselData">
</mz-photo-carousel>
inside the directive its just html to show carousel with the passed data
<div uib-carousel active="active" no-wrap="noWrapSlides">
<div uib-slide ng-repeat="slide in vm.carouselData">
....
</div>
</div>
I want to send filtered data to the mz-photo-carousel directive like this:
<mz-photo-carousel items-per-slide=6
carousel-data="vm.carouselData | myFilter:param">
</mz-photo-carousel>
I dont want to filter inside the mz-photo-carousel directive because I want to leave it generic to deal with only data that it gets.