refactor(all): using ComponentInterface

This commit is contained in:
Manu Mtz.-Almeida
2018-09-14 18:45:39 +02:00
parent 9ad05d85cd
commit c49d896e08
99 changed files with 208 additions and 224 deletions

View File

@ -1,11 +1,11 @@
import { Component, Prop } from '@stencil/core';
import { Component, ComponentInterface, Prop } from '@stencil/core';
import { Config } from '../../interface';
@Component({
tag: 'ion-refresher-content'
})
export class RefresherContent {
export class RefresherContent implements ComponentInterface {
@Prop({ context: 'config' }) config!: Config;
@ -29,7 +29,7 @@ export class RefresherContent {
*/
@Prop() refreshingText?: string;
protected componentDidLoad() {
componentDidLoad() {
if (this.pullingIcon === undefined) {
this.pullingIcon = this.config.get('refreshingIcon', 'arrow-down');
}
@ -38,7 +38,7 @@ export class RefresherContent {
}
}
protected render() {
render() {
return [
<div class="refresher-pulling">
{this.pullingIcon &&