Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ...
@Component({
selector: 'app-accordion',
templateUrl: './accordion.component.html',
})
export class AccordionComponent implements OnInit {
isOpen: boolean = false;
@ContentChild(AccordionBodyDirective, { read: TemplateRef })
accordionBodyRef: TemplateRef<unknown>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment