@@ -6,7 +6,7 @@ import { routerLog, isLogEnabled } from "../trace";
66@Injectable ( )
77export class NativescriptPlatformLocation extends PlatformLocation {
88
9- constructor ( private locationStartegy : NSLocationStrategy ) {
9+ constructor ( private locationStrategy : NSLocationStrategy ) {
1010 super ( ) ;
1111 if ( isLogEnabled ( ) ) {
1212 routerLog ( "NativescriptPlatformLocation.constructor()" ) ;
@@ -18,7 +18,7 @@ export class NativescriptPlatformLocation extends PlatformLocation {
1818 }
1919
2020 onPopState ( fn : LocationChangeListener ) : void {
21- this . locationStartegy . onPopState ( fn ) ;
21+ this . locationStrategy . onPopState ( fn ) ;
2222 }
2323
2424 onHashChange ( _fn : LocationChangeListener ) : void {
@@ -31,25 +31,25 @@ export class NativescriptPlatformLocation extends PlatformLocation {
3131 return "" ;
3232 }
3333 get pathname ( ) : string {
34- return this . locationStartegy . path ( ) ;
34+ return this . locationStrategy . path ( ) ;
3535 }
3636 set pathname ( _newPath : string ) {
3737 throw new Error ( "NativescriptPlatformLocation set pathname - not implemented" ) ;
3838 }
3939
4040 pushState ( state : any , title : string , url : string ) : void {
41- this . locationStartegy . pushState ( state , title , url , null ) ;
41+ this . locationStrategy . pushState ( state , title , url , null ) ;
4242 }
4343
4444 replaceState ( state : any , title : string , url : string ) : void {
45- this . locationStartegy . replaceState ( state , title , url , null ) ;
45+ this . locationStrategy . replaceState ( state , title , url , null ) ;
4646 }
4747
4848 forward ( ) : void {
4949 throw new Error ( "NativescriptPlatformLocation.forward() - not implemented" ) ;
5050 }
5151
5252 back ( ) : void {
53- this . locationStartegy . back ( ) ;
53+ this . locationStrategy . back ( ) ;
5454 }
5555}
0 commit comments