December 2014
Intermediate to advanced
346 pages
6h 14m
English
As AngularJS search filters simply reduce the modulation functions that return a subset of the object that is passed to it, it is possible to chain multiple filters together.
When filtering enumerable objects, AngularJS provides two built-in enumeration filters that are commonly used in conjunction with the search filters: limitTo and orderBy.
Suppose that your application contains a controller as follows with a simple array of objects containing a name string property:
(app.js)
angular.module('myApp', [])
.controller('Ctrl', function ($scope) {
$scope.users = [
{name: 'Albert Pai'},
{name: 'Jake Hsu'},
{name: 'Jack Hanford'},
{name: 'Scott Robinson'},
{name: 'Diwank Singh'}
];
});In addition, suppose that the application ...
Read now
Unlock full access