Skip to content

Commit

Permalink
refactor: register router hooks in property decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Weber committed May 28, 2021
1 parent 8817aec commit 76ae1cc
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import { Component } from 'vue-property-decorator';

Component.registerHooks(['asyncData', 'metaInfo']);
Component.registerHooks([
'beforeRouteEnter',
'beforeRouteUpdate',
'beforeRouteLeave',
'asyncData',
'metaInfo'
]);

0 comments on commit 76ae1cc

Please sign in to comment.