Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.

Append a bs-dropdown attribute to any element to enable the plugin.

Plugin dependency

Dropdowns require the tooltip plugin to be included.

Live demo

$scope.dropdown = {{dropdown | json}};

Two-way data-binding

To prevent databinding issues, "the rule of thumb is, if you use ng-model there has to be a dot somewhere." Miško Hevery.

Scope methods

Methods available inside the directive scope to toggle visibility.

$show()

Reveals the dropdown.

$hide()

Hides the dropdown.

$toggle()

Toggles the dropdown.