You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lookup: function (name) {
var retrievedRecords = {};
var _this = this;
Record.findAll().then(function () {
var params = {
where: {
name: {
'in': name
}
}
};
retrievedRecords = Record.filter(params);
debugger;
_this.lookupSuccess(retrievedRecords);
}).catch(function (error) {
console.log(error);
});
},
Where 'in': name name is "John" no record is found
Where 'in': name name is "John Evans" one record is found.
Looking at issue 238 that appears to be the way I should be filtering but is not the value I expect to be return for sub-string filtering.
angular-data : 1.5.3
angular : 1.3.8
The text was updated successfully, but these errors were encountered:
DEFAULT_RECORDS = [{ id: 1, name: 'John Evans', number: '01928 356115' },{ id: 16, name: 'Murbinator', number: '053180 080000' }];
Where
'in': name
name is "John" no record is foundWhere
'in': name
name is "John Evans" one record is found.Looking at issue 238 that appears to be the way I should be filtering but is not the value I expect to be return for sub-string filtering.
angular-data : 1.5.3
angular : 1.3.8
The text was updated successfully, but these errors were encountered: