How can pass a variable to the nzExtra template on Collapse element? #8554
-
I'm looking to the possibility to pass the variable (id or json) to the template used in nzExtra on collapse element https://ng.ant.design/components/collapse/en. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @emanuelbadaceanu, |
Beta Was this translation helpful? Give feedback.
-
Thank you very much @ParsaArvanehPA ! |
Beta Was this translation helpful? Give feedback.
Hi @emanuelbadaceanu,
You haven't shared your code, so I can't say for sure why there is an extra gear icon displayed in your
nzExtra
section; as for the other issue, you have to put young-template
inside the@for
, and your panels array should have the id you want to show.This way you can show an id for each of them. Check this link for the code sample.