npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

az-dynamic-filter

2.0.1

@kentcdodds

npmHomeRepoSnykSocket
Downloads:7
$ npm install az-dynamic-filter
DailyWeeklyMonthlyYearly

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>