vss-web-extension-sdk
vss-web-extension-sdk copied to clipboard
add 'export default VSS '
export default VSS , for SPA using.
so that you can use VSS in Vue.js SPA :
import Vue from 'vue';
import App from './App.vue';
import VueRouter from 'vue-router';
import RouterConfig from './router.config';
import './load.js';
import VSS from 'vss-web-extension-sdk/lib/VSS.SDK.js';
Vue.use(VueRouter);
Vue.config.productionTip = false;
new Vue({
router: RouterConfig,
render: (h) => h(App),
}).$mount('#app');
VSS.init();
VSS.ready(function() {
var webContext = JSON.stringify(VSS.getWebContext());
sessionStorage.setItem('vss_webcontext', webContext);
console.log('getWebContext:', VSS.getWebContext());
});
Man! That is what I need! :/ So bad there is no one to merge this! @misaya , it worked for u?
Man! That is what I need! :/ So bad there is no one to merge this! @misaya , it worked for u?
yea , It worked , and used in one of microsoft mcs projects.