detach js from html

This commit is contained in:
Tiago Vasconcelos 2023-03-03 14:09:13 +00:00
parent 9c29653ea0
commit 8af6abedbe
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() {}
})
}