【发布时间】:2020-10-21 15:08:59
【问题描述】:
我正在使用 mat-select-country 来显示国家列表并从中进行选择。
<mat-select-country appearance="outline" country="IN" [itemsLoadSize]="5"
(onCountrySelected)="onCountrySelected($event)">
</mat-select-country>
当我设置 country="IN" 时,它只显示国旗而不显示国家名称。 只有点击输入框才会显示国家/地区。我正在尝试在我的页面加载时默认我的国家/地区字段的值。
上述控件的链接 angular-material-extensions/select-country
我也尝试过使用该值,但没有运气。非常感谢任何帮助。
【问题讨论】:
-
你是从 Http 请求中获取数据的吗?
-
不,我用的是控件自带的那个。