Skip to content

Commit

Permalink
feat(main.js): emit appLoaded event via eventbus once the app is loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Nov 22, 2021
1 parent a66afb8 commit a0732be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let appLoader = new AppLoader()
appLoader.loadApp(AppRootComponent, '#app', '<App/>').then(vueInstance => {
main.vueInstance = vueInstance
main.vueInstance.appHooks.loadRegisteredHooks()
main.vueInstance.eventBus.$emit('appLoaded')
main.vueInstance.appHooks.run('appLoaded', main.vueInstance)
})

Expand Down

0 comments on commit a0732be

Please sign in to comment.