Create filters¶
Overview¶
A filter should be placed in alight.filters, or in scope.$ns for private filters.
alight.filters.double = function(value, expression, scope) {
return value + expression + value
}
Input arguments¶
- expression - an input expression
- scope - scope
The filter should return a handler/function, one instance of filter.