mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
test(infiniteScroll): do not use setter for InfiniteScroll
This commit is contained in:
@ -6,10 +6,7 @@ import {App, Page, InfiniteScroll, NavController} from 'ionic-angular';
|
|||||||
templateUrl: 'main.html'
|
templateUrl: 'main.html'
|
||||||
})
|
})
|
||||||
class E2EPage1 {
|
class E2EPage1 {
|
||||||
@ViewChild(InfiniteScroll) set _infiniteScroll(val) {
|
@ViewChild(InfiniteScroll) infiniteScroll: InfiniteScroll;
|
||||||
console.log('ViewChild')
|
|
||||||
this.infiniteScroll = val
|
|
||||||
}
|
|
||||||
items = [];
|
items = [];
|
||||||
enabled: boolean = true;
|
enabled: boolean = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user