Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add array support for deep track #37

Open
archangel-irk opened this issue May 6, 2015 · 4 comments
Open

Add array support for deep track #37

archangel-irk opened this issue May 6, 2015 · 4 comments
Assignees

Comments

@archangel-irk
Copy link
Collaborator

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
@grofit
Copy link

grofit commented Mar 17, 2016

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

@archangel-irk
Copy link
Collaborator Author

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

@grofit
Copy link

grofit commented Mar 18, 2016

brilliant, this is also linked to #51

@jvissers
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants