I have a accordion component. The component has togglable content that is actually <ng-content>
. I have a form component that should to appear after accrodion's title, in its content. So I want to use only one form component for all accordion items. How to do this?
What I mean:
<template ngFor let-item [ngForOf]="items">
<accorion [title]="item.title">
<my-form></my-form>
<!-- So it will put multiple my-form components. -->
<!-- But I want to insert the form dynamically. -->
</accorion>
</template>