Issue
Getting this error when trying to add a primeNG dropdown to userform.component.ts, I've referenced this but to no avail as I already have this fix immplemented: primeng dropdown component error ('p-dropdown' is not a known element)
Uncaught Error: Template parse errors:
Can't bind to 'options' since it isn't a known property of 'p-dropdown'.
1. If 'p-dropdown' is an Angular component and it has 'options' input, then verify that it is part of this module.
2. If 'p-dropdown' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("<p-dropdown [ERROR ->][options] = "technologies" [autoWidth] = "false" id = "technologies"></p-dropdown>
GIT REPO: https://github.com/BillyCharter87/Tech-O-Dex
Thanks!
Solution
It may possible that you are using p-dropdown
in another component and in that another component's module you have not imported DropdownModule
. I did the same mistake and got resolved by putting DropdownModule
in AppModule
as well as in specific component's Module.
Answered By - priyanka pethkar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.