az-dynamic-filter
v2.0.1
Published
Angular module to have a dynamic filter
Downloads
5
Readme
az-dynamic-filter
az-dynamic-filter allows you to bind the name of a filter in your template to swap them out or allow someone to pass it in as an option to a directive. The possibilities are endless!
Usage:
Depend on the module
angular.module('yourModule', ['azDynamicFilter']);
Use it
Filter Name: <input ng-model="vm.filterName" />
Filter: <input ng-model="vm.filterParam" />
<div ng-repeat="thing in vm.things | azDynamicFilter:vm.filterName:vm.filterParam>{{thing}}</div>