mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
@ -30,7 +30,7 @@ export class NavController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateBack(url: string | UrlTree, animated?: boolean, extras?: NavigationExtras) {
|
navigateBack(url: string | UrlTree | any[], animated?: boolean, extras?: NavigationExtras) {
|
||||||
this.setIntent(NavIntent.Back, animated);
|
this.setIntent(NavIntent.Back, animated);
|
||||||
extras = { replaceUrl: true, ...extras };
|
extras = { replaceUrl: true, ...extras };
|
||||||
if (Array.isArray(url)) {
|
if (Array.isArray(url)) {
|
||||||
@ -40,7 +40,7 @@ export class NavController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
navigateRoot(url: string | UrlTree, animated?: boolean, extras?: NavigationExtras) {
|
navigateRoot(url: string | UrlTree | any[], animated?: boolean, extras?: NavigationExtras) {
|
||||||
this.setIntent(NavIntent.Root, animated);
|
this.setIntent(NavIntent.Root, animated);
|
||||||
if (Array.isArray(url)) {
|
if (Array.isArray(url)) {
|
||||||
return this.router!.navigate(url, extras);
|
return this.router!.navigate(url, extras);
|
||||||
|
Reference in New Issue
Block a user