-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathapp.js
51 lines (50 loc) · 1007 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
angular.module('test', [
'message-center'
])
.controller('IndexCtrl', function ($timeout, MessageService) {
MessageService.configure({
timeout: 1500
});
$timeout(function () {
MessageService.broadcast({
message: 'broadcast',
title: 'Broadcast'
});
}, 500);
$timeout(function () {
MessageService.success({
message: 'success',
title: 'Success'
});
}, 1000);
$timeout(function () {
MessageService.info({
message: 'info',
title: 'Info'
});
}, 1500);
$timeout(function () {
MessageService.warn({
message: 'warn',
title: 'Warn'
});
}, 2000);
$timeout(function () {
MessageService.warning({
message: 'warning',
title: 'Warning'
});
}, 2500);
$timeout(function () {
MessageService.danger({
message: 'danger',
title: 'Danger'
});
}, 3000);
$timeout(function () {
MessageService.error({
message: 'error',
title: 'Error'
});
}, 3500);
});