angular / material

Material design for AngularJS
https://material.angularjs.org/
MIT License
16.54k stars 3.39k forks source link

Autocomplete md-autofocus expression #4073

Closed gpopovic closed 9 years ago

gpopovic commented 9 years ago

It would be nice if md-autofocus would be an expression, instead of boolean (example usage: on big screen autofocus autocomplete field, on small screens don't)

Not sure why but i'm unable to get it working by using md-autofocus="{{expression()}}"

ThomasBurleson commented 9 years ago

Please provide a CodePen or Plunkr that demonstrates this issue. Here are some starter demo templates that you can use/fork:

robertmesserle commented 9 years ago

@gpopovic It should work if you remove the {{}} surrounding your expression. The issue is that md-autofocus does expect an expression, so you don't need to wrap the expression.

Closing for now, but if that doesn't work, please reply and I will re-open.