2.0.5 • Published 2 years ago

@homebaseai/vue2-intercom v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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();
  },
});
2.0.5

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.0

2 years ago