We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f042cb3 commit 8752014Copy full SHA for 8752014
adev/src/content/guide/routing/define-routes.md
@@ -363,18 +363,20 @@ You can add child routes to any route definition with the `children` property:
363
364
```angular-ts
365
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
- ]
+ {
+ path: 'product/:id',
+ component: 'ProductComponent',
+ children: [
+ path: 'info',
+ component: ProductInfoComponent
+ },
+ path: 'reviews',
+ component: ProductReviewsComponent
+ }
378
+ ]
379
380
]
381
```
382
0 commit comments