fix the layout docs as well
This commit is contained in:
1 parent
87eb9744e0
commit
1e013a7f24
1 file changed
+1
-1
@@ -162,7 +162,7 @@ mod segment;
|
|||||||
///
|
///
|
||||||
/// # `#[layout(component)]`
|
/// # `#[layout(component)]`
|
||||||
///
|
///
|
||||||
/// The `#[layout]` attribute is used to define a layout. It takes 2 parameters:
|
/// The `#[layout]` attribute is used to define a layout. It takes 1 parameters:
|
||||||
/// - `component`: The component to render when the route is matched. If not specified, the name of the variant is used
|
/// - `component`: The component to render when the route is matched. If not specified, the name of the variant is used
|
||||||
///
|
///
|
||||||
/// The layout component allows you to wrap all children of the layout in a component. The child routes are rendered in the Outlet of the layout component. The layout component must take all dynamic parameters of the nests it is nested in.
|
/// The layout component allows you to wrap all children of the layout in a component. The child routes are rendered in the Outlet of the layout component. The layout component must take all dynamic parameters of the nests it is nested in.
|
||||||
|
|||||||
Reference in new issue
Block a user