This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
One-time literals cause infdig when an interceptor fn is used #16021
Closed
Description
Due to the interceptor wrapper for one-time bindings being different then the regular one.
This means $watch($parse("{foo: bar}", noop))
will be fine, but $watch($parse("::{foo: bar}", noop))
may throw an infdig error. It would be nice if these behaved the same other then the one-time part.
ng-class works around this by doing a deep-watch. It would be nice if such a workaround was done automatically by $parse/$watch, and preferably did not require deep watching.