December 2014
Intermediate to advanced
346 pages
6h 14m
English
If you want to search only for exact matches, vanilla wildcard filtering becomes problematic as the default comparator uses the search object to match against substrings in the collection object. Instead, you might want a way to specify exactly what constitutes a match between the reference object and enumerable collection.
Suppose that your controller contains the following data object:
(app.js)
angular.module('myApp', [])
.controller('Ctrl', function($scope) {
$scope.users = [
{
firstName: 'John',
lastName: 'Stockton',
number: '12'
},
{
firstName: 'Michael',
lastName: 'Jordan',
number: '23'
},
{
firstName: 'Allen',
lastName: 'Iverson',
number: '3'
}
];
});Instead of using just a single ...
Read now
Unlock full access