A Vue component for klick applications to get the klickpages header.
npm install @klicksite/klickpages-header
or
yarn add @klicksite/klickpages-header
Klickpages-header component depends on your application having a configured vuex store.
//main.js
import Vue from 'vue';
import App from './App.vue';
import KlickpagesHeader from 'klickpages-header';
import store from './store';
Vue.use(KlickpagesHeader, { store });
new Vue({
store,
render: (h) => h(App),
}).$mount('#app');
<!-- App.vue -->
<template>
<div>
<klickpages-header :klickartUrl=""/>
<router-view />
</div>
</template>
<script>
export default {};
</script>
prop | description | required | default |
---|---|---|---|
klickartURL | klickart url according to the environment | yes | null |
jwtSecret | secret shared with klickart | yes | null |
hotmartURL | hotmart-pro url according to the environment | yes | url* |
- url hotmart for development/staging/test & production must be provided by hotmart.
Acess the developer-guide: Developer-guide