ng-bootstrap-submenu

AngularJS module wrapping the 'bootstrap submenu' JavaScript library. Useful for creating multiple-tier navigation menus using bootstrap styles.
Homepage:
1 person uses it

ng-bootstrap-submenu

Demo plnkr.

AngularJS module wrapping the 'bootstrap submenu' JavaScript library. Useful for creating multiple-tier navigation menus using bootstrap styles.

To use, download the js and css from the dist folder.

  • ng-bootstrap-submenu.min.css
  • ng-bootstrap-submenu.min.js

Add the bootstrapSubmenu module dependency.

Include bootstrap javascript and stylesheets.

Use the bootstrap-submenu directive (with ng-repeat if you have multiple dropdowns). You must supply a json object to the 'items' attribute. The supplied object needs to have the following properties:

  • href = the link for the item (only necessary for items with no children).
  • display = the text displayed for the item.
  • children = an array of sub-items (may be empty).
comments powered by Disqus
This page was last updated over 1 year ago.