Knockout-Contrib / Knockout-Contrib/KoGrid
KO.computed is not supporting Nested View model
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 277
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I was using a nested viewmodel binding with KoGrid. in earlier version of KoGrid, it was working fine. but recently have upgraded KOGrid 2.1 (koGrid-2.1.1,knockout-2.2.0,jquery-1.8.3) and all those ko.computed stop working which are on nested view model. I have created sample fiddle here:
There are two computed observables in the fiddle.
- DisplayName is working fine - which is using Name observable which is at header level.
- AgeAfterFiveYears is not working - which is using Age.Years which is at child level.
Please advice me.
Thanks a Lot,
Kajal
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked JSFiddle reproduction and compare its behavior across KoGrid 2.1.1, Knockout 2.2.0, and jQuery 1.8.3. Trace why the computed observable using the nested Age.Years value fails while DisplayName works, and consider the issue done when both computed observables update correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100