我有一个“ md-autocomplete”。在“ md-item-template”内部,我想为所选项目设置新的字体和颜色,但是我不能。我尝试了越来越多,但问题仍未解决。我的代码是:
<md-autocomplete
flex
md-input-name="deliver"
md-no-cache="true"
md-selected-item="ctrl.selectedDeliver"
md-selected-item-change="ctrl.setSelectedDeliver(ctrl.selectedDeliver)"
md-search-text="ctrl.deliverSearchText"
md-items="item in ctrl.deliverSearch(ctrl.deliverSearchText)"
md-item-text="item.title"
md-min-length="0"
md-require-match
md-floating-label="{{ 'Deliver' | translate}}"
input-aria-describedby="favoriteStateDescription">
<md-item-template>
<span md-highlight-text="ctrl.searchText">{{item.title}}</span>
</md-item-template>
</md-autocomplete>