I have a toast service that should issue a toast if there is an error. Now the error pops up all the time when I write something wrong in the input field. How can I compare to the label of my toast service and set a timer to only trigger every second, but only in the service with the same label?
this.NotificationService = this.NotificationService.notificationToasts$.subscribe(
(newToastToShow: Toast) => {
this.showToast(newToastToShow);
this.changeDetectorRef.markForCheck();
}
);
}