Here I got a list of countries in an autocomplete dropdown and tried to filter those by starting letters of the country name.
Example: If we type "Aus", all the country name with "aus" are being filtered. (See screenshot). I want to filter only "Australia and Austria" or any other country names with starting letters "Aus".
How to do that?
<ng-autocomplete #countryList formControlName="locationCountry" [data]="countries"
min-length="1" [searchKeyword]="countrykeyword"
[initialValue]="countrykeyword"
(selected)='selectEventCountry($event);onLocationSubmit();'
(inputCleared)='onCountryCleared($event, false)'
[itemTemplate]="countryListTemplate"
[notFoundTemplate]="notFoundTemplate" placeHolder="Enter Country">
</ng-autocomplete>
@Input
or similar-