Customize menu item and badge templates
masterYou can override the default HTML for both the dropdown menu items and the selected item badges using <c-item> and <c-badge> tags inside the component.
Custom Menu Item
Use <c-item> with an <ng-template> to define how each item in the list appears (e.g., adding images or extra labels).
Custom Selected Item (Badge)
Use <c-badge> with an <ng-template> to define how selected items appear in the input field after selection.
<!-- Custom Menu Item -->
<angular2-multiselect [data]="dropdownList" [(ngModel)]="selectedItems" [settings]="dropdownSettings">
<c-item>
<ng-template let-item="item">
<label style="color: #333;min-width: 150px;">{{item.itemName}}</label>
<img [src]="item.image" style="width: 30px; border: 1px solid #efefef;margin-right: 20px;" />
<label>Capital - {{item.capital}}</label>
</ng-template>
</c-item>
</angular2-multiselect>
<!-- Custom Selected Item Badge -->
<angular2-multiselect [data]="dropdownList" [(ngModel)]="selectedItems" [settings]="dropdownSettings">
<c-badge>
<ng-template let-item="item">
<label style="margin: 0px;">{{item.itemName}}</label>
<img [src]="item.image" style="width: 16px; margin-right: 5px;" />
</ng-template>
</c-badge>
</angular2-multiselect>