Browse Source

Use template strings for Vue templates.

merge-requests/1/head
Adrian 4 years ago
parent
commit
cfc7b8710b
  1. 8
      js/main.js

8
js/main.js

@ -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,
},

Loading…
Cancel
Save