We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0490605 commit 3c6f5abCopy full SHA for 3c6f5ab
nativescript-angular/router/ns-router-link.ts
@@ -76,21 +76,19 @@ export class NSRouterLink implements OnChanges { // tslint:disable-line:directiv
76
JSON.stringify(this.pageTransition));
77
78
const extras = this.getExtras();
79
- this.navigator.navigate(this.commands, extras);
+ this.navigator.navigateByUrl(this.urlTree, extras);
80
}
81
82
- private getExtras() {
+ private getExtras(): NavigationExtras&NavigationOptions {
83
const transition = this.getTransition();
84
- constextras: NavigationExtras&NavigationOptions= {
+ return {
85
queryParams: this.queryParams,
86
fragment: this.fragment,
87
clearHistory: this.clearHistory,
88
animated: transition.animated,
89
transition: transition.transition,
90
+ relativeTo: this.currentRoute,
91
};
-
92
- return (<any>Object).assign(extras,
93
- this.currentRoute.toString() !== "Route(url:'', path:'')" && this.currentRoute);
94
95
96
private getTransition(): { animated: boolean, transition?: NavigationTransition } {
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments