I am trying to implement reusable table component, where I can pass the corresponding pTemplates as @Input() and utilize default templates where customization is not necessary, i.e.:
`
...
...
`
and respectively:
@Input() bodyTmpl!: TemplateRef<any>;
Everything works fine, but the events are not anymore emitted. If I replace the dynamic template with the templates' code then the events are available.
Describe the bug
I am trying to implement reusable table component, where I can pass the corresponding pTemplates as @Input() and utilize default templates where customization is not necessary, i.e.:
` ...
... `
and respectively:
@Input() bodyTmpl!: TemplateRef<any>;
Everything works fine, but the events are not anymore emitted. If I replace the dynamic template with the templates' code then the events are available.
Environment
see stackblitz
Reproducer
https://stackblitz.com/edit/github-c6s33v?file=src%2Fmain.ts,src%2Fapp%2Fapp.component.html
Angular version
17.3.3
PrimeNG version
17.12.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
see stackblitz
Browser(s)
all
Steps to reproduce the behavior
Expected behavior