Skip to content

Instantly share code, notes, and snippets.

@AlexanderKozhevin
Created May 7, 2017 10:38
Show Gist options
  • Save AlexanderKozhevin/f72c9c172f08f93f70153cc05de80ebe to your computer and use it in GitHub Desktop.
Save AlexanderKozhevin/f72c9c172f08f93f70153cc05de80ebe to your computer and use it in GitHub Desktop.
<p>
<button type="button" class="btn btn-outline-primary" (click)="isCollapsed = !isCollapsed"
[attr.aria-expanded]="!isCollapsed" aria-controls="collapseExample">
Toggle
</button>
</p>
<div id="collapseExample" [ngbCollapse]="isCollapsed">
<div class="card">
<div class="card-block">
You can collapse this card by clicking Toggle
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment