Hey there, I'm having a bit of trouble with the p-message Tag in Angular. I believe I've imported it correctly as shown below.
import { MessageModule } from 'primeng/message';
imports: [
....
MessageModule,
...
In the HTML component, it looks like this:
<p-message [value]="message"></p-message>
Additionally, in the TypeScript script, it is defined as:
message: Message[] = [];
Why do I keep encountering this error?
- If 'p-message' is an Angular component that has an input called 'value,' please ensure that it is included in this module.
- If 'p-message' is a Web Component, make sure to add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this error.
- To allow any property, add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
I'm trying to display the error toast message above the input field so that users are aware it already exists.
Thanks in advance for your assistance!