Typedef
| Static Public Summary | ||
| public |
A Route is a place where content/resources are located at and defines
which |
|
Static Public
public Route: Object source
A Route is a place where content/resources are located at and defines
which component to load depending on the URL path.
Children routes are optional and recursive.
Properties:
| Name | Type | Attribute | Description |
| name | String | Short descriptive name of the section to load |
|
| to | String | The path to the page it will go to |
|
| component | react~Component | The component it will load below the Navigation |
|
| children | Array<Route> |
|
All nested routes |
Example:
{
name: 'Some name',
to: 'path/to/page',
component: SomeComponent,
children: [{
name: 'Nested component',
to: 'path/to/nested',
component: NestedComponent
}]
}