mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
chore(angular): strict tslint (#16708)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { Directive, ElementRef, HostListener } from '@angular/core';
|
||||
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
|
||||
import { ValueAccessor } from './value-accessor';
|
||||
|
||||
@Directive({
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Directive, ElementRef, HostListener } from '@angular/core';
|
||||
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
|
||||
import { ValueAccessor } from './value-accessor';
|
||||
|
||||
@Directive({
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Directive, ElementRef, HostListener } from '@angular/core';
|
||||
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
||||
|
||||
import { ValueAccessor } from './value-accessor';
|
||||
|
||||
@Directive({
|
||||
|
||||
@ -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)}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user