Skip to content

Commit bc5fbbc

Browse files
authored
Update Vue docs
1 parent 11fae63 commit bc5fbbc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Vue/Resources/doc/index.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ The event ``vue:before-mount`` is called before a component is mounted on the pa
105105
106106
// Example with Vue Router
107107
const router = VueRouter.createRouter({
108+
history: VueRouter.createWebHashHistory(),
108109
routes: [
109110
/* ... */
110111
],
@@ -113,7 +114,11 @@ The event ``vue:before-mount`` is called before a component is mounted on the pa
113114
app.use(router);
114115
});
115116
116-
The event ``vue:before-mount`` is called when a component has been mounted on the page:
117+
.. note::
118+
When using Vue Router, it is recommended to use "hash" (or "memory") history mode,
119+
to prevent your Vue routes from being served through Symfony controllers.
120+
121+
The event ``vue:mount`` is called when a component has been mounted on the page:
117122

118123
.. code-block:: js
119124

0 commit comments

Comments
 (0)