Knockout JS observable array to update when internal observable changes

I need to know how to initiate an update for an observableArray when an observable changes inside an observableArray .

I have an observableArray that represents a binary tree. I use the repository mapping function to get and set values ​​in an array, so it should be balanced even if it supposedly contains an empty observable . For example. nodes () [9] may be empty, but if this node is updated, I would call nodes()[9](set new value) and should have called observableArray to update

+5
javascript
source share
2 answers

Finished using .replace () in the observable array

+4
source share

Managed to scan code and find observableArray.replace ()

RELATED: How to replace a given index element in knockoutjs

+3
source share

All Articles