detach js from html

This commit is contained in:
Tiago Vasconcelos 2023-03-03 14:09:13 +00:00
parent dc1650d036
commit ed643f1c95
6 changed files with 404 additions and 381 deletions

View file

@ -0,0 +1,14 @@
async function productCard(path) {
const template = await loadTemplateAsync(path)
Vue.component('product-card', {
name: 'product-card',
template,
props: ['product'],
data: function () {
return {}
},
methods: {},
created() {}
})
}