Topic: Remove alerts when navigating to another page

jimsgroup pro asked 6 years ago


How can I remove an alert when I navigate to another page? I only want the alert to be visible on the one page and if the user goes to another page, it is removed.

Dawid Adach pro answered 6 years ago


You can call:
this.toastrService.clear();
to remove all toasts manually while switching navigation.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags