(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn)
| 251 | */ |
| 252 | @Method() |
| 253 | popTo(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn): Promise<boolean> { |
| 254 | const ti: TransitionInstruction = { |
| 255 | removeStart: -1, |
| 256 | removeCount: -1, |
| 257 | opts, |
| 258 | }; |
| 259 | if (typeof indexOrViewCtrl === 'object' && (indexOrViewCtrl as ViewController).component) { |
| 260 | ti.removeView = indexOrViewCtrl; |
| 261 | ti.removeStart = 1; |
| 262 | } else if (typeof indexOrViewCtrl === 'number') { |
| 263 | ti.removeStart = indexOrViewCtrl + 1; |
| 264 | } |
| 265 | return this.queueTrns(ti, done); |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Navigate back to the root of the stack, no matter how far back that is. |
no test coverage detected