p-messages not a class ui-messages

UI Components for Angular
Post Reply
Posts: 1
Joined: 11 Feb 2020, 18:22

11 Feb 2020, 18:46

I created a clean app on Angular 9.
I use components prime-ng 9rc4.

My html:

Code: Select all

<p-messages [(value)]="msgs"></p-messages>
<div (click)="onClick()">Click</div>
and in code in component:

Code: Select all

 onClick() {
    this.messageService.add({ severity: 'success', summary: 'Service Message', detail: 'Via MessageService' });
Result does not look like in the examples!
If you look at the received html in a browser, you can see that a div that is subordinate to the p-messages element is not a ui-messages class.
https://drive.google.com/file/d/1dV7Vmi ... sp=sharing

In the examples, it looks different:
https://drive.google.com/file/d/1AoYDD- ... sp=sharing

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest