Skip to content

Commit

Permalink
fix(angular): NavController signatures
Browse files Browse the repository at this point in the history
fixes #15353
  • Loading branch information
manucorporat committed Aug 28, 2018
1 parent 8dfc52f commit 6fdeb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular/src/providers/nav-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand All @@ -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);
Expand Down

0 comments on commit 6fdeb31

Please sign in to comment.