简体   繁体   中英

disable an item in md-autocomplete

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!

在 md-item-template 上使用这样的东西:

ng-click="item.mail==''?$event.stopPropagation():''"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM