Skip to content

Commit ac9a59f

Browse files
authored
Merge branch 'master' into fix/923-module-not-destroyed
2 parents 72d877b + 20d48ee commit ac9a59f

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

Diff for: CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="7.2.3"></a>
2+
## [7.2.3](https://github.com/NativeScript/nativescript-angular/compare/7.2.2...7.2.3) (2019-03-14)
3+
4+
5+
### Bug Fixes
6+
7+
* **location-strategy:** crash on going back with router-outlet after closing modal ([#1748](https://github.com/NativeScript/nativescript-angular/issues/1748)) ([0ed7de6](https://github.com/NativeScript/nativescript-angular/commit/0ed7de6))
8+
9+
10+
111
<a name="7.2.2"></a>
212
## [7.2.2](https://github.com/NativeScript/nativescript-angular/compare/7.2.1...7.2.2) (2019-02-19)
313

Diff for: nativescript-angular/router/ns-platform-location.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { routerLog, isLogEnabled } from "../trace";
66
@Injectable()
77
export 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
}

Diff for: nativescript-angular/router/router.module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const NS_ROUTER_PROVIDERS = [
2929
},
3030
{ provide: LocationStrategy, useExisting: NSLocationStrategy },
3131
NativescriptPlatformLocation,
32-
{ provide: PlatformLocation, useClass: NativescriptPlatformLocation },
32+
{ provide: PlatformLocation, useExisting: NativescriptPlatformLocation },
3333
RouterExtensions,
3434
NSRouteReuseStrategy,
3535
{ provide: RouteReuseStrategy, useExisting: NSRouteReuseStrategy },

0 commit comments

Comments
 (0)