0

This post explains exactly what I want to do but I'm looking for help on how to do it in NativeScript.

Removing an activity from the history stack

[Resolved] I found the answer here:

https://github.com/NativeScript/nativescript-angular/blob/master/ng-sample/app/examples/router/clear-history-test.ts

Community
  • 1
  • 1
scottmgerstl
  • 765
  • 8
  • 18

1 Answers1

1

This is the code solution I came to using angular and nativescript:

// Sign In Page
import { RouterExtensions } from "nativescript-angular/router";

constructor(private _router: RouterExtensions) {}

private onSignInComplete(): void {
    this._router.navigate(["/mainPage"], { clearHistory: true });
}
scottmgerstl
  • 765
  • 8
  • 18