我需要在特定事件上打开角度材料 md-autocomplete 下拉列表。有没有办法做到这一点?
我的 md-autocomplete 具有类似于此http://codepen.io/paucaverba/pen/GpogPv?editors=101的基本设置
<div ng-controller="DemoCtrl as ctrl" layout="column" class="autocompletedemoBasicUsage" ng-app="MyApp">
<md-autocomplete md-selected-item="ctrl.selectedItem" md-search-text="ctrl.searchText" md-items="item in ctrl.querySearch(ctrl.searchText)" md-item-text="item.display" md-min-length="0" placeholder="What is your favorite US state?">
<md-item-template>
<span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item.display}}</span>
</md-item-template>
<md-not-found>
No matches found for "{{ctrl.searchText}}".
</md-not-found>
</md-autocomplete>
<br>
<button class="md-button md-raised"> open </button>
</form>
如果我单击控件本身,它将打开下拉列表。当我单击“打开”按钮时,我想要相同的行为