Working on growl.info() using angularjs and have a query. How can I check if there is already a growl displayed on the screen before adding a new one? The requirement is that when a new growl is triggered, the previous one should be removed from the view. Here is the code snippet in the controller:
$scope.showInfo= function () {
var info = "test";
growl.info(message.replace("{0}", info), {
ttl: 50000
});
};
It's worth noting that the 'ttl' (time to live) value is crucial. If there are no new growls to be shown, the initial one should remain visible for an extended period. Your insights would be greatly appreciated. Thank you!