Sha256: 5d7f81e9010db5ed9e6e5d2a4ac4fbb3fb4da847ad3cbff2fb0d9df85fd6915d
Contents?: true
Size: 609 Bytes
Versions: 16
Compression:
Stored size: 609 Bytes
Contents
;(function() { 'use strict'; var ErrorClass = "alert-danger"; function alertService() { return { alerts: [], addError: function(message) { this.getAlerts().push({ cssClass: ErrorClass, message: message }); }, getAlerts: function() { return this.alerts; }, removeAlert: function(alert) { var index; index = this.getAlerts().indexOf(alert); this.getAlerts().splice(index, 1); } }; } angular.module('socialNetworking.services') .factory('alertService', [alertService]); })();
Version data entries
16 entries across 16 versions & 1 rubygems