pTemplate not working for p-menu alone #15781
Labels
LTS-PORTABLE
Issue's fix will be ported to supported LTS versions
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
This is a copy of #15608 (Toolbar) but for the p-menu, where we have the same issue. Following the documentation to create a menu by using template does not work.
I found out through the other identical bug fixed for the p-toolbar, that the import of SharedModule is necessary.
Either the documentation should be update or an identical fix for p-menu should be done (and potentially everywhere where pTemplate is possible)
Environment
Angular 17.3.10
PrimeNG 17.18.0
Reproducer
No response
Angular version
17.3.10
PrimeNG version
17.18.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
Follow the documentation of primeng 17.18.0 to create a p-menu with template, and check wether the template is applied
Expected behavior
pTemplate should be wroking for p-menu
The text was updated successfully, but these errors were encountered: