AngularJS Material: Material Design component library for AngularJS (1.x). Use angular/material2 channel for Angular Material (v2+).
I am trying to make dynamic auto-complete directive but getting some issue regarding syntax
'\<md-autocomplete\
md-search-text="searchText"\
md-selected-item-change="selectedItemChange(item)"\
md-items="item in findCity(searchText)"\
md-item-text="item.first"\
md-search-text-change="null"\
md-selected-item="selectedItem"\
md-min-length="0"\
md-floating-label="Select City">\
<md-item-template>\
<span md-highlight-text="searchText" md-highlight-flags="^i">{{item.first}}</span>\
</md-item-template>\
</md-autocomplete>'
I want dynamic value instead of searchText, this value will be come from html via custom directive
searchText
is your actual search term when you start typing in that autocomplete field. What do you mean with »I want dynamic value instead of searchText, this value will be come from html via custom directive«