The code can be found here
When I’m initializing observableArray and call ko.applyBindings it works well. But any other changes to the view model are not displayed on ui. I’m adding another object to observableArray and knockout doesn’t render it in the grid.
The code can be found here When I’m initializing observableArray and call ko.applyBindings it
Share
When you push to an observableArray, you want to call
pushdirectly on the observableArray itself and not just on the underlying array.So, you would want to call:
Categories.pushinstead ofCategories().push.observableArrays include wrappers to many of the array functions that will perform the operation on the underlying array and notify any subscribers.