I am calling ajax function for getting data from model. I am trying to load the data in template but i cannot setting the attributes in can.list. Here is my call:
this.domainModel.getDomains("domains", function (response, error) {
if ('domains' in response) {
self.filteredList.attr("domains",list);
} else {
return error;
}
})
It showing Cannot use 'in' operator to search for '18'. I search for this in google but I found the results for jquery. Is there any other options?