Use template strings for Vue templates.

This commit is contained in:
Adrian 2017-11-05 12:03:08 +01:00
parent 22a620594b
commit cfc7b8710b

View File

@ -1,10 +1,10 @@
(function () {
Vue.component('ghetto-sound', {
template: '<div class="btn audio-btn" v-on:click="click">' +
'<label>{{ asset.name }}</label>' +
'<span v-bind:class="[\'status-icon\', { playing: playing }]"></span>' +
'</div>',
template: `<div class="btn audio-btn" v-on:click="click">
<label>{{ asset.name }}</label>
<span v-bind:class="[\'status-icon\', { playing: playing }]"></span>
</div>`,
props: {
asset: Object,
},