Skip to navigation
How to add a custom filter to a angularjs directive
25.10.16
set the filter like: var foo = angular.module('bar'); foo.filter('cleaner', function() { return function(s,a,b) { var s = s.replace('bla bla','boo boo').replace('fuu fu','f*ck'); return s; }; }); use the filter like:
https://docs.angularjs.org/api/ng/filter/filter
Reply
Anonymous
Information Epoch 1747010124
Silence is golden.
Home
Notebook
Contact us