We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d807c commit 584b032Copy full SHA for 584b032
lib/matestack/ui/vue_js/index.js
@@ -1,3 +1,4 @@
1
+import axios from 'axios'
2
import eventHub from './event_hub'
3
const matestackEventHub = eventHub // for compatibility with 1.x
4
@@ -68,14 +69,18 @@ const registerComponents = function(appInstance){
68
69
}
70
71
const mount = function(appInstance, elementId='#matestack-ui'){
- registerComponents(appInstance)
72
+ if (window.matestackAppMounted != true){
73
+ window.matestackAppMounted = true
74
+ registerComponents(appInstance)
75
- appInstance.mount(elementId)
76
+ appInstance.mount(elementId)
77
+ }
78
79
return appInstance
80
81
82
const MatestackUiVueJs = {
83
+ axios,
84
eventHub,
85
matestackEventHub, // for compatibility with 1.x
86
componentMixin,
0 commit comments