chore(tslint): update tslint rules and autofix lint errors

This commit is contained in:
Brandy Carney
2018-01-10 14:42:26 -05:00
parent d0747bd7a9
commit 835175c43c
73 changed files with 592 additions and 468 deletions

View File

@ -37,7 +37,7 @@ export class Segment {
/*
* If true, the user cannot interact with the segment. Default false.
*/
@Prop({ mutable: true }) disabled: boolean = false;
@Prop({ mutable: true }) disabled = false;
/**
* the value of the segment.
@ -51,7 +51,8 @@ export class Segment {
componentDidLoad() {
this.buttons = this.el.querySelectorAll('ion-segment-button');
for (var i = 0; i < this.buttons.length; i++) {
for (let i = 0; i < this.buttons.length; i++) {
const button = this.buttons[i];
button.activated = (button.value === this.value);
@ -76,7 +77,7 @@ export class Segment {
}
selectButton(val: string) {
for (var i = 0; i < this.buttons.length; i++) {
for (let i = 0; i < this.buttons.length; i++) {
const button = this.buttons[i];
button.activated = (button.value === val);
}