在刷新页面时,angular2-multiselect下拉列表不显示默认值。如果我点击屏幕上的任意位置,则会显示。 如何在刷新时设置默认值? 代码:
<angular2-multiselect
[data]='statusList'
[(ngModel)]='selectedStatus'
[settings]='statusSettings'
(onSelect)='onStatusSelect($event)'
(onDeSelect)='onStatusDeSelect($event)'
(onSelectAll)='onStatusSelectAll($event)'
(onDeSelectAll)='onStatusDeSelectAll($event)'>
</angular2-multiselect>