-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
32 lines (25 loc) · 877 Bytes
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.indigo-pink.min.css">
</head>
<body>
<snackbar display-when="MessageHasBeenSent" message="Message Sent" action-text="Undo" timeout="5000" :action-handler="click"></snackbar>
<script src="https://code.getmdl.io/1.1.3/material.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.16/vue.js"></script>
<script>
new Vue({
el: 'body',
components: {'snackbar': Snackbar},
methods: {
click: function() {
console.log('handle snackbar action');
}
});
</script>
</body>
</html>