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
I am used, when using angular 1.5 components, to be able to modify a property of a one-way binding in a child component and get the value also modified in the parent since the binding is passed by reference. So I was expecting the same when passing an object as the param of a target state.
<a ng-repeat="game in $ctrl.games" ui-sref="myState({ game: game})">Go</a>
Unfortunately, when I modify a property of game in the controller of MyState, it doesn't change it in parts of the page that also reference the game object. Is it possible that the object is cloned when passed as a param?
Thanks
The text was updated successfully, but these errors were encountered:
I'm using 1.0.0-rc.1 version and AngularJS 1.5.11. I pass promise instance as a parameter. I then take this parameter in the corresponding component, but no promise resolving happens. The probable reason looks for me like - the specified parameters are not passed by the reference.
Hi,
I am used, when using angular 1.5 components, to be able to modify a property of a one-way binding in a child component and get the value also modified in the parent since the binding is passed by reference. So I was expecting the same when passing an object as the param of a target state.
<a ng-repeat="game in $ctrl.games" ui-sref="myState({ game: game})">Go</a>
Unfortunately, when I modify a property of game in the controller of MyState, it doesn't change it in parts of the page that also reference the game object. Is it possible that the object is cloned when passed as a param?
Thanks
The text was updated successfully, but these errors were encountered: