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
When we pass a Object to child component, the child component may change the property of that Object. But the $change event can not to be triggered.
classAextendsIntact{defauts(){return{data: {}};},change(){// this set will trigger '$change:data.a' and '$change:data' eventsthis.set('data.a',1);}}
// when the users has changed by `change` method of A component// we can not get the `$change:user.a` and `$change:user` events<Adata={self.get('user')}/>
So we should freeze the property which passed to child component.
The text was updated successfully, but these errors were encountered:
When we pass a
Object
to child component, the child component may change the property of thatObject
. But the$change
event can not to be triggered.So we should freeze the property which passed to child component.
The text was updated successfully, but these errors were encountered: