2.0.1 • Published 9 years ago

az-dynamic-filter v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

az-dynamic-filter

Status: npm version npm downloads Build Status Code Coverage

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>