These are chat archives for angular/material

9th
Jul 2015
sunny
@sunnynegi
Jul 09 2015 06:43
This message was deleted
Gaurav Saini
@gauravsaini03
Jul 09 2015 13:18
@dmackerman I tried with custom directive. Got into some problem Can you help

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

Patrick Finkbeiner
@pfinkbeiner
Jul 09 2015 13:53
Sorry, @gauravsaini03 I don’t get it… 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«
Gaurav Saini
@gauravsaini03
Jul 09 2015 17:23
Actually, the problem I am facing is that when I include the same custom directive multiple times on a page, then it appends to same model and both works and get value of same.
@pfinkbeiner
Vinay Agarwal
@vinkaga
Jul 09 2015 23:01
Hello, for a form input, what is the difference between ng-maxlength vs md-maxlength?