p-messages content pTemplate projection doesn't return the message #16487
Labels
Resolution: Help Wanted
Issue or pull request requires extra help and feedback
Milestone
Describe the bug
First of all I see no example within the documentation so I might have this wrong.
I assume the template have access to the message content so we can have a custom template as the API indicates
<p-messages [(value)]="notificationMessages"> <ng-template let-content pTemplate="content"> <p>{{ content | json }}</p> </ng-template> </p-messages>
issue here is
content
doesn't have any valueEnvironment
Development
Reproducer
No response
Angular version
17.3.12
PrimeNG version
17.18.11
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
18.13.0
Browser(s)
any
Steps to reproduce the behavior
No response
Expected behavior
Access to the message object
The text was updated successfully, but these errors were encountered: