Being that knockout observable arrays only update on changing an element in the array if that element is itself an observable, I am trying to "push" an element into an observable array but make it observable. I have tried the following statements, but both result in having an undefined value in my observable array:
viewModel.myObservableArray.push(ko.observable());
and
viewModel.myObservableArray.push(new ko.observable());
what would be the correct way to this?