-
Notifications
You must be signed in to change notification settings - Fork 6
Vue v2
Josselin Guillozet edited this page Oct 4, 2023
·
2 revisions
Integrating with Vue JS is super easy and can be done with just a few lines of code. The example below was taken from using Vue create hello-world. Include the <iproov-me>
web component and replace with your generated token. Then all you need to do is include the @iproov/web-sdk
client.
<template>
<div class="hello">
<iproov-me token="***YOUR_TOKEN_HERE***"
><!-- replace with your generated token -->
<!-- add any custom slots here -->
<div slot="button">
<button type="button">Scan Face <small>Vue Example</small></button>
</div>
</iproov-me>
</div>
</template>
<script>
require("@iproov/web-sdk") // include the @iproov/web-sdk client
export default {
name: "HelloWorld",
props: {
msg: String,
},
}
</script>