mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(router): some docs
This commit is contained in:
@ -22,7 +22,8 @@ in ion-tabs it actually refers to the name of the `ion-tab` to select.
|
||||
|
||||
|
||||
|
||||
Props to pass when the `component` specified in this route load.
|
||||
A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed
|
||||
to the defined component when rendered.
|
||||
|
||||
|
||||
#### url
|
||||
@ -31,6 +32,9 @@ 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
|
||||
|
||||
@ -49,7 +53,8 @@ in ion-tabs it actually refers to the name of the `ion-tab` to select.
|
||||
|
||||
|
||||
|
||||
Props to pass when the `component` specified in this route load.
|
||||
A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed
|
||||
to the defined component when rendered.
|
||||
|
||||
|
||||
#### url
|
||||
@ -58,6 +63,9 @@ 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.
|
||||
|
||||
|
||||
## Events
|
||||
|
||||
|
||||
@ -8,6 +8,9 @@ export class Route {
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@Prop() url = '';
|
||||
|
||||
@ -21,7 +24,8 @@ export class Route {
|
||||
@Prop() component!: string;
|
||||
|
||||
/**
|
||||
* Props to pass when the `component` specified in this route load.
|
||||
* A key value `{ 'red': true, 'blue': 'white'}` containing props that should be passed
|
||||
* to the defined component when rendered.
|
||||
*/
|
||||
@Prop() componentProps?: {[key: string]: any};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user