ngkit.dropdown

0.0.6 • Public • Published

ngKit dropdown

Add dropdown menus like a pro.

<div class="has-dropdown"
     ui-dropdown>
  <button type="button"
          click="dropdown.toggle($event)">
    <span>Show menu</span>
  </button>
  
  <div class="dropdown"
       ng-class="{ active: dropdown.active }">
    <a href="">One</a>
    <a href="">Two</a>
    <a href="">Three</a>
  </div>
  
</div>

Add some trivial styling (you've done this stuff thousand times).

Usage

Add ui-dropdown directive to your Angular module directly:

var app = angular.module('myApp', []);

require('ngkit.dropdown')(app);

Note: ngKit requires Browserify.

License

ISC / Boris Okunskiy

Readme

Keywords

Package Sidebar

Install

npm i ngkit.dropdown

Weekly Downloads

1

Version

0.0.6

License

ISC

Last publish

Collaborators

  • inca