up
up(
stripCount?):Promise<boolean>
Defined in: route.ts:448
Navigate up in the path hierarchy, by going back to the first history entry that has a shorter path than the current one. If there’s none, we just shorten the current path.
Note that going back in browser history happens asynchronously, so route will not be updated immediately.
Parameters
Section titled “Parameters”stripCount?
Section titled “stripCount?”number = 1
Returns
Section titled “Returns”Promise<boolean>
Like back: a promise resolving true once we’ve landed,
false when a guard vetoed the change or another navigation superseded it.