@@ -6,7 +6,7 @@ import { routerLog, isLogEnabled } from "../trace";
6
6
@Injectable ( )
7
7
export class NativescriptPlatformLocation extends PlatformLocation {
8
8
9
- constructor ( private locationStartegy : NSLocationStrategy ) {
9
+ constructor ( private locationStrategy : NSLocationStrategy ) {
10
10
super ( ) ;
11
11
if ( isLogEnabled ( ) ) {
12
12
routerLog ( "NativescriptPlatformLocation.constructor()" ) ;
@@ -18,7 +18,7 @@ export class NativescriptPlatformLocation extends PlatformLocation {
18
18
}
19
19
20
20
onPopState ( fn : LocationChangeListener ) : void {
21
- this . locationStartegy . onPopState ( fn ) ;
21
+ this . locationStrategy . onPopState ( fn ) ;
22
22
}
23
23
24
24
onHashChange ( _fn : LocationChangeListener ) : void {
@@ -31,25 +31,25 @@ export class NativescriptPlatformLocation extends PlatformLocation {
31
31
return "" ;
32
32
}
33
33
get pathname ( ) : string {
34
- return this . locationStartegy . path ( ) ;
34
+ return this . locationStrategy . path ( ) ;
35
35
}
36
36
set pathname ( _newPath : string ) {
37
37
throw new Error ( "NativescriptPlatformLocation set pathname - not implemented" ) ;
38
38
}
39
39
40
40
pushState ( state : any , title : string , url : string ) : void {
41
- this . locationStartegy . pushState ( state , title , url , null ) ;
41
+ this . locationStrategy . pushState ( state , title , url , null ) ;
42
42
}
43
43
44
44
replaceState ( state : any , title : string , url : string ) : void {
45
- this . locationStartegy . replaceState ( state , title , url , null ) ;
45
+ this . locationStrategy . replaceState ( state , title , url , null ) ;
46
46
}
47
47
48
48
forward ( ) : void {
49
49
throw new Error ( "NativescriptPlatformLocation.forward() - not implemented" ) ;
50
50
}
51
51
52
52
back ( ) : void {
53
- this . locationStartegy . back ( ) ;
53
+ this . locationStrategy . back ( ) ;
54
54
}
55
55
}
0 commit comments