createFilterFor(query) {
        var lowercaseQuery = angular.lowercase(query);
        return function filterFn(state) {
            return (state.value.indexOf(lowercaseQuery) > -1);
        };
    }
/**
     * Create filter function for a query string
     */
Create filter function for a query string
Create filter function for a query string
createFilterFor(query) {
        var lowercaseQuery = angular.lowercase(query);
        return function filterFn(state) {
            return (state.value.indexOf(lowercaseQuery) > -1);
        };
    }
createFilterFor ( query ) { var lowercaseQuery = angular . lowercase ( query ) ; return function filterFn ( state ) { return ( state . value . indexOf ( lowercaseQuery ) > - 1 ) ; } ; }
Create filter function for a query string
Create filter function for a query string