refactor(all): enable ts strict

This commit is contained in:
Manu Mtz.-Almeida
2018-04-03 17:30:25 +02:00
parent ea24ad677d
commit fd5c957787
44 changed files with 1065 additions and 1475 deletions

View File

@ -25,7 +25,7 @@ export class SelectOption {
/**
* The text value of the option.
*/
@Prop({ mutable: true }) value: string|null = null;
@Prop({ mutable: true }) value: string;
/**
* Emitted when the select option loads.
@ -42,7 +42,9 @@ export class SelectOption {
}
componentWillLoad() {
this.value = this.value || this.el.textContent;
if (this.value == null) {
this.value = this.el.textContent || '';
}
}
componentDidLoad() {