We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
html: <ng-autocomplete [data]="countries" [searchKeyword]="keyword" placeholder="Enter the Country Name" (selected)='selectEvent($event)' (inputChanged)='onChangeSearch($event)' [itemTemplate]="itemTemplate" [notFoundTemplate]="notFoundTemplate">
<ng-template #itemTemplate let-item> <a [innerHTML]="item.name">
<ng-template #notFoundTemplate let-notFound> <div [innerHTML]="notFound">
in ts file: public countries = [];
onChangeSearch(search: string) { this.countries = [ { id: 1, name: 'Albania 1', }, { id: 2, name: 'Belgium 2', }, { id: 3, name: 'Denmark', } ]; }
If I search for New York, the results should be shown as "Not Found"
Nothing is show.. panel is not opened if no match found.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
html:
<ng-autocomplete
[data]="countries"
[searchKeyword]="keyword"
placeholder="Enter the Country Name"
(selected)='selectEvent($event)'
(inputChanged)='onChangeSearch($event)'
[itemTemplate]="itemTemplate"
[notFoundTemplate]="notFoundTemplate">
<ng-template #itemTemplate let-item>
<a [innerHTML]="item.name">
<ng-template #notFoundTemplate let-notFound>
<div [innerHTML]="notFound">
in ts file:
public countries = [];
onChangeSearch(search: string) {
this.countries = [
{
id: 1,
name: 'Albania 1',
},
{
id: 2,
name: 'Belgium 2',
},
{
id: 3,
name: 'Denmark',
}
];
}
Expected result
If I search for New York, the results should be shown as "Not Found"
Actual result
Nothing is show.. panel is not opened if no match found.
Steps to reproduce
Your Environment
The text was updated successfully, but these errors were encountered: