Clr-accrodion not working as expected with ngFor #6490
Replies: 1 comment
-
Hi @symeonmattes, Sorry for the delay. Using What you can do is create a pipe to run the function for you if you think the function will return the same data every time you run it. But I believe this is not the case so I would encourage you minimize the function execution inside a template (mostly for performance reasons) and use another approach e.g. using a Observer with I'm leaving an example below using the pipe |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have been trying to find a solution on accordion on clarity but without any success. The issue that I have is:
in component.ts:
in component.html:
The Second is working as expected. However the first although it shows the items on click it doesn't open the accordion. Any ideas?
Clarity project:
Clarity version:
Framework:
Framework version:
ie: Angular 10,11,12
Device:
Beta Was this translation helpful? Give feedback.
All reactions