@homebaseai/vue2-intercom
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

vue2-intercom

npm i @homebaseai/vue2-intercom

Usage

import Vue from 'vue';
import VueIntercom from '@homebaseai/vue2-intercom';

Vue.use(VueIntercom);
new Vue({
  el: '#app',
  data() {
    return {
      userId: 1,
      name: 'John Doe',
      email: 'john@example.com',
    };
  },
  mounted() {
    this.$intercom.boot({
      app_id: import.meta.env.VUE_APP_INTERCOM_TOKEN,
      user_id: this.userId,
      name: this.name,
      email: this.email,
    });
    this.$intercom.show();
  },
});

Package Sidebar

Install

npm i @homebaseai/vue2-intercom

Weekly Downloads

9

Version

2.0.5

License

MIT

Unpacked Size

4.77 kB

Total Files

4

Last publish

Collaborators