Skip to content

Commit 8752014

Browse files
IslaBencrisbeto
authored andcommitted
docs: Update define-routes.md (#62069)
Nested routes example missing curly braces PR Close #62069
1 parent f042cb3 commit 8752014

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

adev/src/content/guide/routing/define-routes.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,18 +363,20 @@ You can add child routes to any route definition with the `children` property:
363363

364364
```angular-ts
365365
const routes: Routes = [
366-
path: 'product/:id',
367-
component: 'ProductComponent',
368-
children: [
369-
{
370-
path: 'info',
371-
component: ProductInfoComponent
372-
},
373-
{
374-
path: 'reviews',
375-
component: ProductReviewsComponent
376-
}
377-
]
366+
{
367+
path: 'product/:id',
368+
component: 'ProductComponent',
369+
children: [
370+
{
371+
path: 'info',
372+
component: ProductInfoComponent
373+
},
374+
{
375+
path: 'reviews',
376+
component: ProductReviewsComponent
377+
}
378+
]
379+
}
378380
]
379381
```
380382

0 commit comments

Comments
 (0)