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.
functiongetDataRoot(data,expression){vargetter=$parse(expression);returngetter(data)||getter.assign(data,{});}vardata={details: {orderId: ''}};console.log(getDataRoot(data,'details'));// should return: {orderId: ''}console.log(getDataRoot(data,'address'));// should return a new object {}
The function above always returned a value either an existing or a new one object, because getter.assign always returned the value set, now I have upgraded to angular 1.4.4 and getter.assign no longer return anything.
Here is an example, just change the versions and you will see the issue.