We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b574712 commit e1c90c8Copy full SHA for e1c90c8
public/output.html
@@ -34,8 +34,14 @@
34
logs: []
35
},
36
methods: {
37
+ clear: function() {
38
+ this.logs = [];
39
+ }
40
41
computed: {
42
+ reverse: function() {
43
+ return this.logs.reverse()
44
45
46
sockets:{
47
output: function(log) {
@@ -54,9 +60,9 @@
54
60
55
61
<div class="container" id="app">
56
62
57
- <h1>Logging Output</h1>
63
+ <h1>Logging Output<span class="pull-right"><a class="btn btn-lg btn-info" v-on:click="clear">Clear</a></span></h1>
58
64
59
- <div class="row" v-for="log in logs" track-by="$index">
65
+ <div class="row" v-for="log in reverse" track-by="$index">
66
67
<pre>
68
{{ log }}
0 commit comments