This will add a floating label to autocomplete and wrap it in the md-input-container. This will be applied to the dropdown menu for styling.
![jsfiddle angularjs newsbar jsfiddle angularjs newsbar](https://i.stack.imgur.com/4mQmL.png)
If true, the first item will be selected by default. If true, will immediately focus the input element. Specifies the amount of time (in milliseconds) to wait before looking for results. Specifies the minimum length of text before autocomplete will make suggestions. Placeholder text that will be forwarded to the input.ĭisables the internal caching that happens in autocomplete.ĭetermines whether or not to disable the input field. Sr.NoĪn expression in the format of item in items to iterate over matches for your search.Īn expression to be run each time a new item is selected.Īn expression to be run each time the search text updates.Ī model to bind the search query text to.Īn expression that will convert your object to a single string. The following table lists out the parameters and description of the different attributes of md-autocomplete. After first call, it uses the cached results to eliminate unnecessary server requests or lookup logic and it can be disabled.
![jsfiddle angularjs newsbar jsfiddle angularjs newsbar](https://i.stack.imgur.com/ajLTv.png)
md-autocomplete caches results when performing a query.
![jsfiddle angularjs newsbar jsfiddle angularjs newsbar](https://4.bp.blogspot.com/-Bs7VJyjRSJ0/Uk1vFq-FQ4I/AAAAAAAACO8/7AX0xI_Ls7A/s1600/jsfiddle.png)
can be used to provide search results from local or remote data sources. This control acts as a real-time suggestion box as soon as the user types in the input area. The md-autocomplete, an Angular Directive, is used as a special input control with an inbuilt dropdown to show all possible matches to a custom query.