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
If I bind an object attribute in a template and I delete one, then the view is no more updated. You can see a demo in this plnkr. The first button set value to null, the second button delete the value.
The text was updated successfully, but these errors were encountered:
Deleting properties that are being observed is not supported. The binding system rewrites properties it's observing with a getter and setter. This enabled the binding system to intercept property assignments and handle the property change. Deleting the property will put things in a bad state.
Also, you don't want to delete properites, usually for performance sake, because that changes the JS runtime's "shape" understanding of the object, which is costly. It's better to simply set the property's value to undefined or null.
If I bind an object attribute in a template and I delete one, then the view is no more updated. You can see a demo in this plnkr. The first button set value to null, the second button delete the value.
The text was updated successfully, but these errors were encountered: