I am loading data with Ajax, for initial load, I could bind all data by using this to observableArry:
success: function (result) {
var mappedData = $.map(result.d, function (item) {
return new Applicant(item);
});
self.Applicants(mappedData);
}
The question is when I want to load more to the array, I know how to add one, but what if the next load would be more than 1 object, and I want to bind to array, how could I do that?
self.Applicants.push(mappedData); won't work.
Any suggestions?