Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class="accordion">
<div class="accordion-head">
<button (click)="isOpen = !isOpen">{{ isOpen ? "-" : "+" }}</button>
</div>
<hr />
<div *ngIf="isOpen" class="accordion-content">
<ng-content select="[accordionBody]"></ng-content>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment