knockout-es5
knockout-es5 copied to clipboard
Add array support for deep track
see https://github.com/archangel-irk/storage/blob/master/lib/document.js#L1091
var obj = {
selected: {},
locale_days: {
mon: 'Понедельник',
tue: 'Вторник',
wed: 'Среда',
thu: 'Четверг',
fri: 'Пятница',
sat: 'Суббота',
sun: 'Воскресенье'
},
pages: [
{ identity: 'general', title: 'О заведении', isActive: false },
{ identity: 'photos', title: 'Фото и фотоотчеты', isActive: false },
{ identity: 'reviews', title: 'Отзывы', isActive: false },
{ identity: 'offers', title: 'Акции', isActive: false },
{ identity: 'menu', title: 'Меню', isActive: false },
{ identity: 'feeds', title: 'Бизнес-ланч', isActive: false },
{ identity: 'banquet', title: 'Банкеты', isActive: false }
],
activePage: 'general'
};
ko.track(obj, {
deep: true
});
console.log(ko.getObservable(obj.pages[0], 'isActive')); // null
Is this on the roadmap anywhere? as this is a major problem for one of my current projects :(
I will try to do it in the next couple of days, thanks.
brilliant, this is also linked to #51
@archangel-irk ~ was wondering whether there might be any new developments for this specific issue?