Created
October 15, 2019 14:49
-
-
Save juanbrujo/3e02990bda5a1d0b0b2699a2d6c5e6c7 to your computer and use it in GitHub Desktop.
How to use Mati (getmati.com) Web SDK in a VueJS project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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