1
- import { Directive , HostListener , Input , Optional , OnChanges } from "@angular/core" ;
1
+ import { Directive , HostListener , Input } from "@angular/core" ;
2
2
import { NavigationExtras } from "@angular/router" ;
3
- import { ActivatedRoute , Router , UrlTree , } from "@angular/router" ;
3
+ import { ActivatedRoute , Router , UrlTree } from "@angular/router" ;
4
4
import { routerLog } from "../trace" ;
5
- import { PageRoute } from "./page-router-outlet" ;
6
5
import { RouterExtensions } from "./router-extensions" ;
7
6
import { NavigationOptions } from "./ns-location-strategy" ;
8
7
import { NavigationTransition } from "tns-core-modules/ui/frame" ;
9
8
import { isString } from "tns-core-modules/utils/types" ;
10
9
11
10
// Copied from "@angular/router/src/config"
12
- export type QueryParamsHandling = ' merge' | ' preserve' | '' ;
11
+ export type QueryParamsHandling = " merge" | " preserve" | "" ;
13
12
14
13
/**
15
14
* The nsRouterLink directive lets you link to specific parts of your app.
@@ -70,7 +69,10 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
70
69
71
70
@HostListener ( "tap" )
72
71
onTap ( ) {
73
- routerLog ( `nsRouterLink.tapped: ${ this . commands } clear: ${ this . clearHistory } transition: ${ JSON . stringify ( this . pageTransition ) } duration: ${ this . pageTransitionDuration } ` ) ;
72
+ routerLog ( `nsRouterLink.tapped: ${ this . commands }
73
+ clear: ${ this . clearHistory }
74
+ transition: ${ JSON . stringify ( this . pageTransition ) }
75
+ duration: ${ this . pageTransitionDuration } ` ) ;
74
76
75
77
const extras = this . getExtras ( ) ;
76
78
this . navigator . navigateByUrl ( this . urlTree , extras ) ;
@@ -98,7 +100,7 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
98
100
preserveFragment : attrBoolValue ( this . preserveFragment ) ,
99
101
} ) ;
100
102
101
- routerLog ( `nsRouterLink urlTree created: ${ urlTree } ` )
103
+ routerLog ( `nsRouterLink urlTree created: ${ urlTree } ` ) ;
102
104
103
105
return urlTree ;
104
106
}
@@ -127,7 +129,7 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
127
129
}
128
130
129
131
let duration = + this . pageTransitionDuration ;
130
- if ( ! isNaN ( duration ) ) {
132
+ if ( ! isNaN ( duration ) ) {
131
133
transition . duration = duration ;
132
134
}
133
135
@@ -136,5 +138,5 @@ export class NSRouterLink { // tslint:disable-line:directive-class-suffix
136
138
}
137
139
138
140
function attrBoolValue ( s : any ) : boolean {
139
- return s === '' || ! ! s ;
141
+ return s === "" || ! ! s ;
140
142
}
0 commit comments