I want to use a filter expression like values | filter:value1
to hide or show a div, where values
and value
are both declared on the scope in the containing directive's link function.
This works as expected, except that it keeps firing off infinite digest loop errors.
See this jsbin for a demonstration: http://jsbin.com/nujineci/2/edit
What am I doing wrong? Why should these errors occur when no models are being updated by the filter?