mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
chore(angular): strict tslint (#16708)
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user