Topic: Remove alerts when navigating to another page
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.
Add comment
Dawid Adach pro answered 7 years ago
You can call:
this.toastrService.clear();
to remove all toasts manually while switching navigation.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Answered
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No