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 e25fca3 commit 6bbafecCopy full SHA for 6bbafec
README.md
@@ -169,12 +169,14 @@ import Component from 'vue-class-component'
169
class MyComp extends Vue {
170
// The class component now treats beforeRouteEnter
171
// and beforeRouteLeave as Vue Router hooks
172
- beforeRouteEnter () {
+ beforeRouteEnter (to, from, next) {
173
console.log('beforeRouteEnter')
174
+ next() // needs to be called to confirm the navigation
175
}
176
- beforeRouteLeave () {
177
+ beforeRouteLeave (to, from, next) {
178
console.log('beforeRouteLeave')
179
180
181
182
```
0 commit comments