Use template strings for Vue templates.
This commit is contained in:
parent
22a620594b
commit
cfc7b8710b
@ -1,10 +1,10 @@
|
|||||||
(function () {
|
(function () {
|
||||||
|
|
||||||
Vue.component('ghetto-sound', {
|
Vue.component('ghetto-sound', {
|
||||||
template: '<div class="btn audio-btn" v-on:click="click">' +
|
template: `<div class="btn audio-btn" v-on:click="click">
|
||||||
'<label>{{ asset.name }}</label>' +
|
<label>{{ asset.name }}</label>
|
||||||
'<span v-bind:class="[\'status-icon\', { playing: playing }]"></span>' +
|
<span v-bind:class="[\'status-icon\', { playing: playing }]"></span>
|
||||||
'</div>',
|
</div>`,
|
||||||
props: {
|
props: {
|
||||||
asset: Object,
|
asset: Object,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user