7

We have a situation where we turned a md-input-container with a md-select / md-option to a md-autocomplete. In the md-select/md-option we were able to have a ng-disabled property on both the md-select and md-option. For the md-autocomplete we have not found a way to use a ng-disabled at the option/item level. We are using it on the md-autocomplete but need to disable options in the drop down once they are selected too.

Is there a way to do this using md-autocomplete? Thanks!

Doreen
  • 89
  • 3

1 Answers1

0

On md-item-template use something like this:

ng-click="item.mail==''?$event.stopPropagation():''"
4b0
  • 21,981
  • 30
  • 95
  • 142
bipi
  • 1