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.alerts
array 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 index
int index of alert to close
Type Definitions
-
controller($scope)
-
Controller for the alerts module
Parameters:
Name Type Description $scope
service -
on(_event, _data)
-
called when the add_alert event is received by $scope
Parameters:
Name Type Description _event
object the event received _data
json {type: "type of alert [danger|success|null]", msg: "message to display"}