NativeScript Angular 2 disable swipe back on ios
<p>does anyone know how to disable the back swipe after navigating to a new page?</p>

<p>I read this: <a href="http://docs.nativescript.org/angular/core-concepts/angular-navigation#clearing-page-navigation-history" rel="nofollow">http://docs.nativescript.org/angular/core-concepts/angular-navigation#clearing-page-navigation-history</a></p>

<blockquote>
  <p>Clearing Page Navigation History In NativeScript's page navigation,
  you have the option to navigate to another page and clear the page
  navigation history. This means that the user will not be able to go
  back using the back button (or swipe back in iOS). This is useful in
  scenarios where you have a login page and you don't want users to be
  able go go back to it once logged in.
  <em>But I want to go back to login page when the user clicked logout.</em></p>
</blockquote>

<p>I have 2 pages, LoginPage and FirstPage. Im using RouterExtensions. so this.nav.navigate([“/firstPage"], { clearHistory: true});
this works.
On second page i have a button that goes to this.nav.navigate([“/”]) (so back to the login page). But I get</p>

<blockquote>
  <p>Aug 11 19:30:26 antons-MBP appname[62814]: CONSOLE ERROR
  file:///app/tns_modules/zone.js/dist/zone-node.js:421:23: Error:
  Uncaught (in promise): TypeError: undefined is not an object
  (evaluating 'cacheItem.reusedRoute')</p>
</blockquote>