alertService
Summary
Defines a generic alert management system to display one or several messages.
Methods
add
Syntax
add
(
-
type
-
msg
-
[timeout]
Summary
Displays an alert.
Parameters:
Example:
// Info alert displayed for 4 seconds
AlertService.add('info', 'Message of the alert', 4000);
// Error alert displayed permanently
AlertService.add('danger', 'Message of the alert');
closeAll
Syntax
closeAll
()
Summary
Closes all opened alerts.
Example:
// Close all alerts
AlertService.closeAll();