docs(components): update method and parameter descriptions (#18075)

This commit is contained in:
Brandy Carney
2019-04-23 12:59:25 -04:00
committed by GitHub
parent bd96491d03
commit 464ec3b70a
56 changed files with 879 additions and 644 deletions

View File

@ -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

View File

@ -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') {