knockout-es5 icon indicating copy to clipboard operation
knockout-es5 copied to clipboard

Add array support for deep track

Open archangel-irk opened this issue 9 years ago • 4 comments

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

archangel-irk avatar May 06 '15 03:05 archangel-irk

Is this on the roadmap anywhere? as this is a major problem for one of my current projects :(

grofit avatar Mar 17 '16 20:03 grofit

I will try to do it in the next couple of days, thanks.

archangel-irk avatar Mar 18 '16 02:03 archangel-irk

brilliant, this is also linked to #51

grofit avatar Mar 18 '16 07:03 grofit

@archangel-irk ~ was wondering whether there might be any new developments for this specific issue?

jvissers avatar May 16 '16 21:05 jvissers