mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
docs(components): update method and parameter descriptions (#18075)
This commit is contained in:
@ -85,10 +85,10 @@ Navigate to the specified URL.
|
||||
|
||||
#### Parameters
|
||||
|
||||
| Name | Type | Description |
|
||||
| ----------- | ------------------------------- | ----------- |
|
||||
| `url` | `string` | |
|
||||
| `direction` | `"back" \| "forward" \| "root"` | |
|
||||
| Name | Type | Description |
|
||||
| ----------- | ------------------------------- | -------------------------------------------------------- |
|
||||
| `url` | `string` | The url to navigate to. |
|
||||
| `direction` | `"back" \| "forward" \| "root"` | The direction of the animation. Defaults to `"forward"`. |
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
@ -88,6 +88,9 @@ export class Router implements ComponentInterface {
|
||||
|
||||
/**
|
||||
* Navigate to the specified URL.
|
||||
*
|
||||
* @param url The url to navigate to.
|
||||
* @param direction The direction of the animation. Defaults to `"forward"`.
|
||||
*/
|
||||
@Method()
|
||||
push(url: string, direction: RouterDirection = 'forward') {
|
||||
|
||||
Reference in New Issue
Block a user