fix(angular): NavController signatures

fixes #15353
This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 01:14:49 +02:00
parent 8dfc52f63d
commit 6fdeb319ef

View File

@ -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);
extras = { replaceUrl: true, ...extras };
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);
if (Array.isArray(url)) {
return this.router!.navigate(url, extras);