chore(angular): strict tslint (#16708)

This commit is contained in:
Manu MA
2018-12-12 17:17:43 +01:00
committed by GitHub
parent ecf1bae441
commit 585a84f829
33 changed files with 99 additions and 72 deletions

View File

@ -1,5 +1,6 @@
import { Directive, ElementRef, HostListener } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { ValueAccessor } from './value-accessor';
@Directive({

View File

@ -1,5 +1,6 @@
import { Directive, ElementRef, HostListener } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { ValueAccessor } from './value-accessor';
@Directive({

View File

@ -1,5 +1,6 @@
import { Directive, ElementRef, HostListener } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
import { ValueAccessor } from './value-accessor';
@Directive({

View File

@ -56,7 +56,7 @@ export function setIonicClasses(element: ElementRef) {
for (let i = 0; i < classList.length; i++) {
const item = classList.item(i);
if (item && startsWith(item, 'ng-')) {
if (item !== null && startsWith(item, 'ng-')) {
classList.add(`ion-${item.substr(3)}`);
}
}