diff --git a/src/app/app.component.ts b/src/app/app.component.ts index ec910468..4267eabf 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,4 @@ -import { Component, NgZone } from '@angular/core'; +import { Component, HostListener, NgZone } from '@angular/core'; import { AlertController, MenuController, Platform } from '@ionic/angular'; import { TranslateService } from '@ngx-translate/core'; import { localKeys } from './core/constants/localStorage.keys'; @@ -249,4 +249,8 @@ export class AppComponent { this.routerSubscription.unsubscribe(); } } + @HostListener('window:popstate', ['$event']) + onPopState(event: any) { + this.utilService.alertClose() + } }