[mod]
This commit is contained in:
parent
d8dc865da0
commit
3e53c77e20
@ -5,9 +5,6 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script type="text/html" id="cmp-link">
|
|
||||||
<div>{{ hello }}</div>
|
|
||||||
</script>
|
|
||||||
This is a test
|
This is a test
|
||||||
<div>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</div>
|
<div>Page loaded at: {{now | date "Mon Jan 2 15:04:05 MST 2006"}}</div>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
@ -56,12 +56,3 @@ var app = new Vue({
|
|||||||
this.load()
|
this.load()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//Define a new global component called button-counter
|
|
||||||
app.component('my-link', {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
count: 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
template: '#cmp-link'
|
|
||||||
})
|
|
||||||
|
Loading…
Reference in New Issue
Block a user