Hi,
When I use Knockoutjs ObservableArray, I found out that there are something make me confuse.
for example.
var array1 = ko.observableArray(["1","2","3"]);
var arr2 = array1();
arr2.push("4") //this will change original array1 value.
arr2 = ["2","4"] //this will not change original array1 value.
what happened for these? arr2 is not reference to array1 value right? when value been change, knockoutjs will create a new object I think.
Or maybe, arr2 at first is reference to array1 value, only when set value(=) will create a new object?
appreciate if someone can help me for this...
Thanks,
Bei Bei