https://github.com/zedwang/angular-waterfall
Note:Only supports versions below 1.6. A responsive waterfall plugin of angular
https://github.com/zedwang/angular-waterfall
Last synced: about 1 year ago
JSON representation
Note:Only supports versions below 1.6. A responsive waterfall plugin of angular
- Host: GitHub
- URL: https://github.com/zedwang/angular-waterfall
- Owner: zedwang
- Created: 2015-04-26T05:09:21.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-27T06:03:07.000Z (about 11 years ago)
- Last Synced: 2023-02-27T01:31:40.321Z (over 3 years ago)
- Language: JavaScript
- Homepage:
- Size: 2.72 MB
- Stars: 16
- Watchers: 6
- Forks: 16
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-waterfall
a responsive waterfall plugin of angular
定列自适应瀑布流指令
# options
* contentWidth(optional) 外层容器宽度,不设则auto
* cols(optional) 指定显示列数,默认6
# example
1.模块注入
```javascript
angular.module('angularWaterfallApp',["ngWaterfall","ui.router"])
```
2.模板
```javascript
-
{{image.title}}
{{image.summary}}
```
3.controller
```javascript
page++;
$scope.$on("waterfall:loadMore",function(){//滚动自动填充事件
$scope.loadMoreData();
})
```