Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom Dropdown Component
<div class="btn-group" dropdown>
<button id="button-basic" dropdownToggle type="button"
class="btn btn-primary dropdown-toggle"
aria-controls="dropdown-basic">
{{ selectedOption }} <span class="caret"></span>
</button>
<ul id="dropdown-basic" *dropdownMenu class="dropdown-menu"
role="menu" aria-labelledby="button-basic">
<li role="menuitem" *ngFor="let option of options">
<span class="dropdown-item">
{{ option }}
</span>
</li>
</ul>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.