I am using angular2-multiselect-dropdown but the dropdown is empty.
Following is the data in ts file:
this.list = [
{
"docid":1,
"value": "Europe"
},
{
"docid":2,
"value": "ASIA"
},
{
"docid":3,
"value": "AFRICA"
},
{
"docid":4,
"value": "LATIN AMERICA"
},
{
"docid":5,
"value": "NORTH AMERICA"
}
]
In HTML :
<angular2-multiselect [data]="List" [(ngModel)]="selectedItems"
(onSelect)="onItemSelect($event)"
(onDeSelect)="OnItemDeSelect($event)"
(onSelectAll)="onSelectAll($event)"
(onDeSelectAll)="onDeSelectAll($event)">
</angular2-multiselect>
In examples, he is using {"id":9,"itemName":"Italy"} which works well. So is there any way that the field itemName can be configured.
https://github.com/CuppaLabs/angular2-multiselect-dropdown https://cuppalabs.github.io/angular2-multiselect-dropdown/#/basic