]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: improve example line wrapping (#2374)
authorDominik Pschenitschni <6173598+dpschen@users.noreply.github.com>
Fri, 25 Oct 2024 06:51:12 +0000 (08:51 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Oct 2024 06:51:12 +0000 (08:51 +0200)
packages/docs/guide/essentials/named-views.md

index 80ea993b3706da27f44d86914a1fb4bf608f872a..2312baa4bff4e69c2d1790f0157c1820e97343bf 100644 (file)
@@ -78,16 +78,19 @@ Then you can achieve the layout above with this route configuration:
   path: '/settings',
   // You could also have named views at the top
   component: UserSettings,
-  children: [{
-    path: 'emails',
-    component: UserEmailsSubscriptions
-  }, {
-    path: 'profile',
-    components: {
-      default: UserProfile,
-      helper: UserProfilePreview
+  children: [
+    {
+      path: 'emails',
+      component: UserEmailsSubscriptions
+    },
+    {
+      path: 'profile',
+      components: {
+        default: UserProfile,
+        helper: UserProfilePreview
+      }
     }
-  }]
+  ]
 }
 ```