Skip to content

Instantly share code, notes, and snippets.

@juanbrujo
Created October 15, 2019 14:49
Show Gist options
  • Save juanbrujo/3e02990bda5a1d0b0b2699a2d6c5e6c7 to your computer and use it in GitHub Desktop.
Save juanbrujo/3e02990bda5a1d0b0b2699a2d6c5e6c7 to your computer and use it in GitHub Desktop.
How to use Mati (getmati.com) Web SDK in a VueJS project
<template>
<div>
<div v-html="MatiButton('CLIENTID')"></div>
</div>
</template>
<script>
export default {
name: 'Mati',
methods: {
MatiButton: function (clientid) {
return `<mati-button clientid="${clientid}" metadata="{email:'${email}'}" />`
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment