refactor(all): enable strictPropertyInitialization

This commit is contained in:
Manu Mtz.-Almeida
2018-04-19 18:48:38 +02:00
parent 78bd146ad2
commit 4ea8881f33
129 changed files with 1513 additions and 1664 deletions

View File

@ -19,11 +19,11 @@ export class InfiniteScroll {
private didFire = false;
private isBusy = false;
@Element() private el: HTMLElement;
@Element() el!: HTMLElement;
@State() isLoading = false;
@Prop({ context: 'queue' }) queue: QueueController;
@Prop({ context: 'enableListener' }) enableListener: EventListenerEnable;
@Prop({ context: 'queue' }) queue!: QueueController;
@Prop({ context: 'enableListener' }) enableListener!: EventListenerEnable;
/**
* The threshold distance from the bottom
@ -79,7 +79,7 @@ export class InfiniteScroll {
* you must call the infinite scroll's `complete()` method when
* your async operation has completed.
*/
@Event() ionInfinite: EventEmitter;
@Event() ionInfinite!: EventEmitter;
async componentWillLoad() {
const scrollEl = this.el.closest('ion-scroll');