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.
It seems like angular.copy doesn't re-create accessors (getter/setter properties) when cloning, which leads to a break in behavior.
For instance:
var template = {
data: {label: 'new node'},
get label() {return this.data.label;},
set label(value) { this.data.label = value;}
};
var test = angular.copy(template);
test.label = 'not working';
console.log(test.data.label); // Should be 'not working', but instead is 'new node'