We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d9511 commit 079a95aCopy full SHA for 079a95a
example/index.html
@@ -38,9 +38,9 @@
38
list: []
39
},
40
methods: {
41
- infiniteHandler: function () {
+ infiniteHandler: function ($state) {
42
if (this.list.length > 200) {
43
- this.$refs.infiniteLoading.$emit('$InfiniteLoading:complete');
+ $state.complete();
44
} else {
45
setTimeout(function () {
46
var temp = [];
@@ -49,7 +49,7 @@
49
}
50
51
this.list = this.list.concat(temp);
52
- this.$refs.infiniteLoading.$emit('$InfiniteLoading:loaded');
+ $state.loaded();
53
}.bind(this), 1000);
54
55
0 commit comments