Knockout create array in viewmodel
问题 another knockout question. I've a page where serversided paging is desirable. I wanna achieve this using knockout. I Create a viewmodel using the mapping pluging and added lots of functionality. var jsonModel = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(this.Model, new Newtonsoft.Json.Converters.IsoDateTimeConverter()))'; myViewModel = ko.mapping.fromJSON(jsonModel, {}, new ViewModel()); ko.applyBindings(myViewModel); I've implemented a computed observable at first. But this gave