createFilterFor(query) {
		var lowercaseQuery = angular.lowercase(query);
		return function filterFn(state) {
		  	return (state.value.indexOf(lowercaseQuery) === 0);
		};
	}
/**
     * 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) === 0);
		};
	}
createFilterFor ( query ) { var lowercaseQuery = angular . lowercase ( query ) ; return function filterFn ( state ) { return ( state . value . indexOf ( lowercaseQuery ) === 0 ) ; } ; }
Create filter function for a query string
Create filter function for a query string