From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Sat, 25 Nov 2023 12:26:54 +0000 (+0000) Subject: docs: use vue-html for template examples (#2056) X-Git-Tag: v4.3.0~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=374f173079b4101004ceba8effe6117734437fc4;p=thirdparty%2Fvuejs%2Frouter.git docs: use vue-html for template examples (#2056) --- diff --git a/packages/docs/guide/advanced/transitions.md b/packages/docs/guide/advanced/transitions.md index 0d647d63..e0c6b92d 100644 --- a/packages/docs/guide/advanced/transitions.md +++ b/packages/docs/guide/advanced/transitions.md @@ -7,7 +7,7 @@ In order to use transitions on your route components and animate navigations, you need to use the [`` slot](./router-view-slot): -```html +```vue-html @@ -36,7 +36,7 @@ const routes = [ ] ``` -```html +```vue-html @@ -49,7 +49,7 @@ const routes = [ It is also possible to determine the transition to use dynamically based on the relationship between the target route and current route. Using a very similar snippet to the one just before: -```html +```vue-html @@ -72,7 +72,7 @@ router.afterEach((to, from) => { Vue might automatically reuse components that look alike, avoiding any transition. Fortunately, it is possible [to add a `key` attribute](https://vuejs.org/api/built-in-special-attributes.html#key) to force transitions. This also allows you to trigger transitions while staying on the same route with different params: -```vue +```vue-html diff --git a/packages/docs/guide/essentials/named-routes.md b/packages/docs/guide/essentials/named-routes.md index eb43626e..51d1cda1 100644 --- a/packages/docs/guide/essentials/named-routes.md +++ b/packages/docs/guide/essentials/named-routes.md @@ -24,7 +24,7 @@ const routes = [ To link to a named route, you can pass an object to the `router-link` component's `to` prop: -```html +```vue-html User diff --git a/packages/docs/guide/essentials/named-views.md b/packages/docs/guide/essentials/named-views.md index f8604479..917b73bc 100644 --- a/packages/docs/guide/essentials/named-views.md +++ b/packages/docs/guide/essentials/named-views.md @@ -7,7 +7,7 @@ Sometimes you need to display multiple views at the same time instead of nesting them, e.g. creating a layout with a `sidebar` view and a `main` view. This is where named views come in handy. Instead of having one single outlet in your view, you can have multiple and give each of them a name. A `router-view` without a name will be given `default` as its name. -```html +```vue-html @@ -61,7 +61,7 @@ It is possible to create complex layouts using named views with nested views. Wh The `