Create filters

Overview

A filter should be placed in alight.filters, or in scope.$ns for private filters.

Example filter
alight.filters.double = function(value, expression, scope) {
    return value + expression + value
}

Example on jsfiddle

Input arguments

  • expression - an input expression
  • scope - scope

The filter should return a handler/function, one instance of filter.

comments powered by Disqus