material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete md-floating-label is string, not expression

Open mrichar1 opened this issue 11 years ago • 6 comments

This means that you can't use 'dynamic' labels, e.g.: <md-autocomplete md-floating-label="ctrl.myLabel">

mrichar1 avatar Jul 31 '15 11:07 mrichar1

Hello - Is this going to be fixed any time soon? I am trying to do use md-floating-label in my directive using md-autocomplete if a certain variable is true and placeholder if not. I can't get md-floating-label to be removed as a attribute though, so the floating label is included even when I don't want it.

linkedrank avatar Sep 03 '15 20:09 linkedrank

+1

shalabhaggarwal avatar Jan 05 '16 08:01 shalabhaggarwal

+1

atinder avatar Jan 05 '16 08:01 atinder

For a workaround, I got dynamic labels to work using ng-attr. Should also work for placeholder.

<md-autocomplete ng-attr-md-floating-label="{{label}}"></md-autocomplete>

yangy46 avatar Feb 09 '16 15:02 yangy46

Yes i am working with autocomplete label but i am unable to translate it as it don't accept any expression and will show the expression as a static string.......please fix it soon .......... Thanks

RizwanAslam avatar Mar 18 '16 10:03 RizwanAslam

+1

adamayoung avatar Apr 18 '16 18:04 adamayoung