Skip to content

Commit 0ca7db0

Browse files
r4zzz4kktsn
authored andcommitted
Updated README to support new vue-router beforeRouteUpdate hook (#144)
1 parent 0d1c441 commit 0ca7db0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ import Component from 'vue-class-component'
119119
// Register the router hooks with their names
120120
Component.registerHooks([
121121
'beforeRouteEnter',
122-
'beforeRouteLeave'
122+
'beforeRouteLeave',
123+
'beforeRouteUpdate' // for vue-router 2.2+
123124
])
124125
```
125126

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy