data binding - Track model's array properties using knockout ES5 -



data binding - Track model's array properties using knockout ES5 -

i have model object in few properties arrays seen below:

var object1 = { prop1 = []; prop2 = null; };

ko.track(object1) not track array property prop1. how can array property tracked? doing follows:

for (var property in object1) { if (array.isarray(object1[property])) { //track each item in array property trackmodelarrayproperties(object1[property]); } } var trackmodelarrayproperties = function (property) { var arraypropobj = { property: null }; ko.track(arraypropobj ); };

the above not working because array properties show null values after info bind them input controls.

arrays data-binding knockout.js knockout-es5-plugin

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -