I am trying to use messages for some validation, such as in this example: https://www.primefaces.org/primeng/#/validation
<p-message severity="error" [text]="userform.controls['password'].errors['required'] ? 'Password is required' : userform.controls['password'].errors['minlength'] ? 'Must be longer than 6 characters' : ''"
However, the little 'x' icon is not showing up for me. I also tried a more simple version:
<p-message severity="error" text="Field is required"></p-message>
but got the same results. I have both MessageModule and MessagesModule imported as needed, as well as CommonModule and BrowserModule as others have suggested elsewhere. As in the example above, I get the red field saying "password is required" but no icon.
Has anyone had the same issue or have and idea?
UI Components for Angular
2 posts • Page 1 of 1
Who is online
Users browsing this forum: Baidu [Spider] and 4 guests