I am curious if there is a way to disable a filter once its been applied.
for instance:
<h3 class="mention" ng-bind-html="mention | getPlace" place-directive > <span>@</span>{{mention}}</h3>
filter:
hungryApp.filter('getPlace', function($stateParams) {
return function(place) {
return '<a>' + '@' + place.placeinfo.placename + '</a>';
}
});
Once the element is rendered, is there an angular way for that filter to not effect the elements it has already filtered?
I was able to come up with a dirty solution of writing a directive that basically replaces the element with a cloned copy, but definitely not the cleanest solution.
Thanks for any suggestion.