https://github.com/postor/ng-collpase
https://github.com/postor/ng-collpase
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/postor/ng-collpase
- Owner: postor
- Created: 2015-09-14T12:01:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-16T07:57:09.000Z (over 9 years ago)
- Last Synced: 2025-01-25T18:09:59.772Z (4 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ng-collpase 让展开收起更自如
## 实例参考:http://plnkr.co/edit/QFp379dEFQhKGRxmJz7p?p=preview ##
1.定义module时依赖
var testApp = angular.module('test', ['collpase']);
2.html代码中使用指令初始化一个 your-collpase-id
<ul ng-collpase="your-collpase-id" ng-collpase-option="{current:{'1':1}}">
3.定义控制块和响应块
<a ng-collpase-target="your-collpase-tap" ng-collpase-parent="your-collpase-id">
<p ng-collpase-href="your-collpase-tap" ng-collpase-parent="your-collpase-id">