Skip to content

Instantly share code, notes, and snippets.

@BharathRavi27
Last active September 12, 2020 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BharathRavi27/0562b6a722eaa8eaefe9ab60c38228fa to your computer and use it in GitHub Desktop.
Save BharathRavi27/0562b6a722eaa8eaefe9ab60c38228fa to your computer and use it in GitHub Desktop.
// ...
@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