Here is the filter I add in AngularJS:
angular.module('myApp', []) .filter('clean', function(){ return function(input){ return input; }; })
Can someone explain how I am five, why do I need an additional anonymous function to return data?
Basically why this is not working:
angular.module('myApp', []) .filter('clean', function(input){ return input; })
I am trying to understand what is going on better here, so any help would be appreciated.
source share