You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
So the problem is that you are defining the object in the template itself. The $parse services creates a getter for this string, which returns the given object (i.e. {"2":3}). Unfortunately, this getter function returns a new object every time it is called. This means that in the digest cycle this object changes "every" time it is checked, making the digest unstable and unable to stop.
This is easily worked around by putting the definition of the object into a variable that is referenced. See http://jsfiddle.net/tLdE6/.
I guess it would be good if the parser were able to realise that this object is a constant and always return the same object. Adding to post 1.2 milestone to be looked into.
If you pass a value to a directive where bi-directional binding to the parent scope is used weird things happen.
See here: http://jsfiddle.net/7tPAr/3/
The text was updated successfully, but these errors were encountered: