mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update to latest stencil
This commit is contained in:
@@ -9,72 +9,18 @@ Router is a component that can take a component, and render it when the Browser
|
||||
|
||||
## Properties
|
||||
|
||||
#### component
|
||||
|
||||
string
|
||||
|
||||
Name of the component to load/select in the navigation outlet (`ion-tabs`, `ion-nav`)
|
||||
when the route matches.
|
||||
|
||||
The value of this property is not always the tagname of the component to load,
|
||||
in ion-tabs it actually refers to the name of the `ion-tab` to select.
|
||||
|
||||
|
||||
#### componentProps
|
||||
|
||||
{[key: string]: any}
|
||||
|
||||
A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed
|
||||
to the defined component when rendered.
|
||||
|
||||
|
||||
#### url
|
||||
|
||||
string
|
||||
|
||||
Relative path that needs to match in order for this route to apply.
|
||||
|
||||
Accepts paths similar to expressjs so that you can define parameters
|
||||
in the url /foo/:bar where bar would be available in incoming props.
|
||||
|
||||
|
||||
## Attributes
|
||||
|
||||
#### component
|
||||
|
||||
string
|
||||
|
||||
Name of the component to load/select in the navigation outlet (`ion-tabs`, `ion-nav`)
|
||||
when the route matches.
|
||||
|
||||
The value of this property is not always the tagname of the component to load,
|
||||
in ion-tabs it actually refers to the name of the `ion-tab` to select.
|
||||
|
||||
|
||||
#### component-props
|
||||
|
||||
|
||||
|
||||
A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed
|
||||
to the defined component when rendered.
|
||||
|
||||
|
||||
#### url
|
||||
|
||||
string
|
||||
|
||||
Relative path that needs to match in order for this route to apply.
|
||||
|
||||
Accepts paths similar to expressjs so that you can define parameters
|
||||
in the url /foo/:bar where bar would be available in incoming props.
|
||||
| Property | Attribute | Description | Type |
|
||||
| ---------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |
|
||||
| `componentProps` | -- | A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed to the defined component when rendered. | `{[key: string]: any}` |
|
||||
| `component` | `component` | Name of the component to load/select in the navigation outlet (`ion-tabs`, `ion-nav`) when the route matches. The value of this property is not always the tagname of the component to load, in ion-tabs it actually refers to the name of the `ion-tab` to select. | `string` |
|
||||
| `url` | `url` | Relative path that needs to match in order for this route to apply. Accepts paths similar to expressjs so that you can define parameters in the url /foo/:bar where bar would be available in incoming props. | `string` |
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
#### ionRouteDataChanged
|
||||
|
||||
Used internaly by `ion-router` to know when this route did change.
|
||||
|
||||
| Event | Description |
|
||||
| --------------------- | ------------------------------------------------------------------ |
|
||||
| `ionRouteDataChanged` | Used internaly by `ion-router` to know when this route did change. |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user