ng-dropdown
v1.0.0
Published
simple angular dropdown module
Downloads
60
Readme
install
git clone https://github.com/haaaiiimmm/ng-dropdown.git
or
bower install simple-ng-dropdown --save
or
npm install ng-dropdown --save
usage
Inject:
angualr.module('myApp',['ngDropdownByYu'])
html:
<ng-dropdown></ng-dropdown>
or
<div ng-dropdown></div>
Bind data:
<ng-dropdown drop-vals="vals" chosen-val="chosenVal" chosen-key="chosenKey"></ng-dropdown>`
vals
should be a simple array like ["Nick","Andy","Allen","张三","李四"]
demo
check demo.html
下载
git clone https://github.com/haaaiiimmm/ng-dropdown.git
或
bower install simple-ng-dropdown --save
或
npm install ng-dropdown
用法
注入模块:
angualr.module('myApp',['ngDropdownByYu'])
html加上标签:
<ng-dropdown></ng-dropdown>
or
<div ng-dropdown></div>
绑定数据:
<ng-dropdown drop-vals="vals" chosen-val="chosenVal" chosen-key="chosenKey"></ng-dropdown>`
vals
是个数组,例如 ["Nick","Andy","Allen","张三","李四"]
例
demo.html