Skip to content

Commit

Permalink
docs(start/concepts): fix warning (#10221)
Browse files Browse the repository at this point in the history
  • Loading branch information
kno-raziel committed Mar 18, 2023
1 parent d19c2c2 commit d6a231e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,3 +200,4 @@
- yionr
- yuleicul
- zheng-chuang
- kno-raziel
4 changes: 1 addition & 3 deletions docs/start/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -664,9 +664,7 @@ And the resulting element tree rendered will be:
</PageLayout>
```

<docs-warning>
Don't forget to add an `<Outlet>` to your layout where you would like child route elements to be rendered. Using `children` will not work as expected.
</docs-warning>
<docs-warning>Don't forget to add an `<Outlet>` to your layout where you would like child route elements to be rendered. Using `{children}` will not work as expected.</docs-warning>

The `PageLayout` route is admittedly weird. We call it a [layout route](#layout-route) because it doesn't participate in the matching at all (though its children do). It only exists to make wrapping multiple child routes in the same layout simpler. If we didn't allow this then you'd have to handle layouts in two different ways: sometimes your routes do it for you, sometimes you do it manually with lots of layout component repetition throughout your app:

Expand Down

0 comments on commit d6a231e

Please sign in to comment.