Using filter on directive attribute causes infinite loop in $digest cycle
问题 An attempt to use a filter on a directive with isolate scope: <div tags="p.tags | refTags"></div> Causes an infinite loop in the $digest cycle: This error occurs when the application's model becomes unstable and each $digest cycle triggers a state change and subsequent $digest cycle. Angular detects this situation and prevents an infinite loop from causing the browser to become unresponsive. .directive 'tags', -> restrict: 'A' scope: tags: '=' templateUrl: 'partials/tags.html' .filter