These docs are for v1.0. Click to read the latest docs for v2.0.

Vue.js is a Progressive Javascript Framework widely being used by a lot of websites nowadays.

723

For Smartech's Javascript to work on Websites using the vue.js framework, an addition is to be made to the framework's router file.
Refer to the code below -

import Vue from "vue";
import Router from "vue-router";
import Foo from "@/components/Foo";
import Bar from "@/components/Bar";

Vue.use(Router);

const router = new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "foo",
      component: Foo
    },
    {
      path: "/bar",
      name: "bar",
      component: Bar
    }
  ]
});

// this need to be implemented
router.afterEach((to, from) => {
  Vue.nextTick(() => {
    console.log("current" + window.location.href);
    //smartech('dispatch', 1, {}); 
  });
});

export default router;

In the above code, there's a snippet at the end which has been added. Below is the snippet :

router.afterEach((to, from) => {
Vue.nextTick(() => {
console.log("current" + window.location.href);
//smartech('dispatch', 1, {});
});
});

Adding the above snippet will thus enable the functioning of Smartech's Javascript.