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 103 additions and 76 deletions

View File

@ -1,9 +1,9 @@
import { Directive, ElementRef, HostListener, Input, Optional } from '@angular/core';
import { NavController, NavDirection } from '../../providers/nav-controller';
import { Router, RouterLink } from '@angular/router';
import { LocationStrategy } from '@angular/common';
import { Directive, ElementRef, HostListener, Input, Optional } from '@angular/core';
import { Router, RouterLink } from '@angular/router';
import { Subscription } from 'rxjs';
import { NavController, NavDirection } from '../../providers/nav-controller';
@Directive({
selector: '[routerLink]',
@ -45,10 +45,7 @@ export class RouterLinkDelegate {
@HostListener('click', ['$event'])
onClick(ev: UIEvent) {
if (this.routerDirection) {
this.navCtrl.setDirection(this.routerDirection);
}
this.navCtrl.setDirection(this.routerDirection);
ev.preventDefault();
}
}