Sha256: 543ebac097d6204da77b00e8fe4d3fdcf3412e34433871dde599ca724949d3b5
Contents?: true
Size: 569 Bytes
Versions: 6
Compression:
Stored size: 569 Bytes
Contents
/** * Alerts Controller */ angular.module('Dashboard').controller('AlertsCtrl', ['$scope', AlertsCtrl]); function AlertsCtrl($scope) { $scope.alerts = [ { type: 'success', msg: 'Thanks for visiting! Feel free to create pull requests to improve the dashboard!' }, { type: 'danger', msg: 'Found a bug? Create an issue with as many details as you can.' } ]; $scope.addAlert = function() { $scope.alerts.push({msg: 'Another alert!'}); }; $scope.closeAlert = function(index) { $scope.alerts.splice(index, 1); }; }
Version data entries
6 entries across 6 versions & 1 rubygems