oookli
12/10/2015 - 4:59 PM

angular search one more than one attribute

angular search one more than one attribute

$scope.search = function (row) {
        return (angular.lowercase(row.brand).indexOf(angular.lowercase($scope.query) || '') !== -1 ||
                angular.lowercase(row.model).indexOf(angular.lowercase($scope.query) || '') !== -1);
    };