View on GitHub

pb.bank

A starter online banking application built with Worklight, Angular and Bluemix services

Download this project as a .zip file Download this project as a tar.gz file

Class: alerts

pb.bank. alerts

new alerts()

This module manages the display of alerts right under the navbar
Parameters:
Name Type Description
ui.bootstrap ngModule
Source:

Members

(static) $scope.alerts

Properties:
Name Type Description
$scope.alerts array holds alerts
Source:

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
Source:

Type Definitions

controller($scope)

Controller for the alerts module
Parameters:
Name Type Description
$scope service
Source:

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"}
Source: