refactor(all): make all method return a promise

This commit is contained in:
Manu Mtz.-Almeida
2018-08-28 18:16:10 +02:00
parent 5d32115684
commit 1d46973785
53 changed files with 307 additions and 442 deletions

View File

@ -1,4 +1,4 @@
import { Component, Element, Event, EventEmitter, Method, Prop, Watch } from '@stencil/core';
import { Component, Element, Event, EventEmitter, Prop, Watch } from '@stencil/core';
import { Color, Mode, StyleEvent } from '../../interface';
import { createColorClasses } from '../../utils/theme';
@ -38,11 +38,6 @@ export class Label {
*/
@Event() ionStyle!: EventEmitter<StyleEvent>;
@Method()
getText(): string {
return this.el.textContent || '';
}
componentDidLoad() {
this.positionChanged();
}