new alerts()
This module manages the display of alerts right under the navbar
Parameters:
| Name | Type | Description |
|---|---|---|
ui.bootstrap |
ngModule |
Members
-
(static) $scope.alerts
-
Properties:
Name Type Description $scope.alertsarray holds alerts
Methods
-
(static) closeAlert(index)
-
called when user clicks close button on alert removes alert from the alerts array so that it is not rendered
Parameters:
Name Type Description indexint index of alert to close
Type Definitions
-
controller($scope)
-
Controller for the alerts module
Parameters:
Name Type Description $scopeservice -
on(_event, _data)
-
called when the add_alert event is received by $scope
Parameters:
Name Type Description _eventobject the event received _datajson {type: "type of alert [danger|success|null]", msg: "message to display"}