I am developing project in angular 6 and I am using ng2-completor in my search Box. I have used completerService.local
that contains list of string.
<div><ng2-completer [datasource]="countryLists" id="global_search"
[openOnFocus]="true"
[minSearchLength]="1" [clearSelected]="true"
[clearUnselected]="true" [openOnFocus]='false' (click)="onFocus()"
placeholder="{{ 'Search '}}"
[fillHighlighted]="false" (selected)="searchMyCountry($event)"></ng2-completer>
</div>
Now, I want to add an image and description like they have given in their demo link
But I am unable to find how to use this.
How do I do this?
In the example given you can check that completerService is chained with
local
and thenimageField
function.Link to example in GitHub