-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component Panel: Adding control flow inside ng-template for header is not working anymore #16971
Comments
Having the same error with some other components, check this out: |
As a workaround, using Regarding the cause of this bug, I suspect that when using Due to this reassignment by Angular, we lose the reference to the primeng/packages/primeng/src/basecomponent/basecomponent.ts Lines 75 to 90 in 8fd83e4
This means the scope of this bug could extend to other components that use the |
Hi. |
Fixed in 4f766b2 |
Describe the bug
When adding control flow operator like @if in ng-template in Panel it breaks the template and the content is not rendered.
Environment
18.0.3
Reproducer
https://stackblitz.com/edit/github-akrybn?file=src%2Fapp%2Fapp.component.html
Angular version
18.0.3
PrimeNG version
18.0.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
21.6.2
Browser(s)
No response
Steps to reproduce the behavior
Create a panel with a template
<p-panel [toggleable]="true">
Prime
@if (1 === 1) {
NG
}
Expected behavior
Result should display Prime NG, instead it removes everything
The text was updated successfully, but these errors were encountered: