Initial logoff error

I am using login system for my ionic app. Registration, login and logout are performed using the Auth-Service ion system. Registration and login work fine, but logout throws an error in main.js:

_this.plt is null

      

The output-code is taken from the documentation:

this.auth.logout();

      

Strange that the exit is complete, but the named error is displayed (in the debug console and as an ionic error screen).

The logout button is located inside the application:

<ion-menu [content]="content" *ngIf="auth.isAuthenticated()">
  <ion-header>
    <ion-toolbar>
      <ion-title>Menu</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-content>
    <ion-list>
      <button menuClose ion-item *ngFor="let p of pages" (click)="openPage(p)">
        {{p.title}}
      </button>
    </ion-list>

    <ion-fab bottom right>
      <button ion-fab mini><ion-icon name="arrow-dropleft"></ion-icon></button>
      <ion-fab-list side="left">
        <button menuClose ion-fab (click)="logout()"><ion-icon name="md-log-out"></ion-icon></button>
      </ion-fab-list>
    </ion-fab>

  </ion-content>
</ion-menu>

<ion-nav [root]="rootPage" #content swipeBackEnabled="false"></ion-nav>
      

Run codeHide result


Someone had the same problem or can she help me find out what the problem is?

+3


source to share





All Articles