Month: January 2013
-
Solved my problem with knockout
Using a model with nested observable array I did not know how to refer to self in a event handler (click) on a element in a cycle on that observableArray … function subObject(data,index) { var self = this; self._index = index; // … } function MyWholeModel() { var self = this; self.subObjects = ko.observableArray([]); self.currentSubobj…