Nuxt/examples/vue-class-component/plugins/nuxt-class-component.js

15 lines
230 B
JavaScript
Raw Normal View History

2017-04-14 14:47:21 +00:00
import Component from 'vue-class-component'
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteLeave',
'asyncData',
'fetch',
'middleware',
'layout',
'transition',
'scrollToTop'
])
export default Component