-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
Can't bind to 'list' since it isn't a known property of 'typeahead' #26
Comments
I had this issue, and fixed it by adding this to my app.module.ts
And then adding it to my @NgModule declarations:
|
@meetmicah - when I implemented your solution, I get the following error: Unexpected value 'Typeahead' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation. Any inputs on these ? |
@dipakpurbey Did you forget to add an '@' somewhere? Similar to this one: https://stackoverflow.com/questions/40363060/angular-2-error-when-declaring-custom-pipe-on-appmodule |
@meetmicah just re-checked. no I have not left it somewhere. Already tested the application by commenting out the typeahead lines in app.module.ts, the app runs fine but when i insert the Typeahead in declarations array of NgModule, the error comes back. :( |
("
<typeahead
[(ngModel)]="selectedFruit"
[ERROR ->][list]="fruits"
[searchProperty]="'searchText'" [displayProperty]="'name'"
[maxSuggestions]="2"
"): PortSearchComponent@6:2
Can't bind to 'searchProperty' since it isn't a known property of 'typeahead'. ("
[(ngModel)]="selectedFruit"
[list]="fruits"
[ERROR ->][searchProperty]="'searchText'" [displayProperty]="'name'"
[maxSuggestions]="2"
(suggestionSelect"): PortSearchComponent@7:2
Can't bind to 'displayProperty' since it isn't a known property of 'typeahead'. ("
[(ngModel)]="selectedFruit"
[list]="fruits"
[searchProperty]="'searchText'" [ERROR ->][displayProperty]="'name'"
[maxSuggestions]="2"
(suggestionSelected)="fruitSelected($event)"
"): PortSearchComponent@7:34
Can't bind to 'maxSuggestions' since it isn't a known property of 'typeahead'. ("
[list]="fruits"
[searchProperty]="'searchText'" [displayProperty]="'name'"
[ERROR ->][maxSuggestions]="2"
(suggestionSelected)="fruitSelected($event)"
placeholder="Begin typing a fru"): PortSearchComponent@8:2
'typeahead' is not a known element:
The text was updated successfully, but these errors were encountered: