Duplicate: #1235
Okay so I have a listview, and in the changed event of the segbar I reload based on the selection... in the case of "Book" (see video) zero results are returned... but I can't seem to get that reflected in the listview.
I'm setting the observable arrays length back to 0 before I loop through the data with a forEach.
viewModel.resourceItems.length = 0;
http.getJSON(url).then(function (data) {
data.Resources.forEach(function(item){
viewModel.resourceItems.push(item);
});
pageSize++;
}, function (e) {
//ERROR
console.log(e);
});
http://www.screencast.com/t/Uz6P5SPZWvqN
Reactions are currently unavailable
Duplicate: #1235
Okay so I have a listview, and in the changed event of the segbar I reload based on the selection... in the case of "Book" (see video) zero results are returned... but I can't seem to get that reflected in the listview.
I'm setting the observable arrays length back to 0 before I loop through the data with a forEach.
viewModel.resourceItems.length = 0;
http.getJSON(url).then(function (data) {
data.Resources.forEach(function(item){
viewModel.resourceItems.push(item);
});
pageSize++; }, function (e) { //ERROR console.log(e); });http://www.screencast.com/t/Uz6P5SPZWvqN