Skip to content

Commit 48ea60d

Browse files
committed
install
1 parent 3bdd318 commit 48ea60d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue2-slideout-panel",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "Lib for creating stackable panels using Vue JS",
55
"main": "dist/vue2-slideout-panel.js",
66
"scripts": {

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import vueSlideoutPanelService from './service';
55

66
// expose component and service to global scope
77
if (typeof window !== 'undefined' && window.Vue) {
8-
window.Vue.component('slideout-panel', VueSlideoutPanel);
98
window.Vue.use({
109
install(Vue) {
10+
Vue.component('slideout-panel', VueSlideoutPanel);
1111
Vue.prototype.$showPanel = vueSlideoutPanelService.show;
1212
}
1313
});
@@ -16,6 +16,7 @@ if (typeof window !== 'undefined' && window.Vue) {
1616
} else {
1717
Vue.use({
1818
install(NewVue) {
19+
NewVue.component('slideout-panel', VueSlideoutPanel);
1920
NewVue.prototype.$showPanel = vueSlideoutPanelService.show;
2021
}
2122
});

0 commit comments

Comments
 (0)