2017-01-10 11 views

答えて

5

回避策はもう必要ありません。あなたが選択するためにmultipleを追加することができます。

<md-select placeholder="State" multiple> 
    <md-option *ngFor="let state of states" [value]="state">{{ state }}</md-option> 
</md-select> 

を次に、それは次のようになります。

enter image description hereヒントがあり

enter image description here

+0

これはドキュメントに記載されていないのに驚いています! –

+0

'multiple'属性は[API documentation](https://material.angular.io/components/select/api)にリストされていますが、それも検索しなければなりませんでした。 –

関連する問題