-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nav-link): merge nav-push/pop/set-root into a single component #18909
Conversation
@@ -0,0 +1,21 @@ | |||
# ion-nav-push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# ion-nav-push | |
# ion-nav-link |
@@ -0,0 +1,21 @@ | |||
# ion-nav-push | |||
|
|||
`NavPush` is a component used to navigate to the specified component. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`NavPush` is a component used to navigate to the specified component. | |
A navigation link is used to navigate to a specified component. The component can be navigated to by going `forward`, `back` or as a `root` component. |
# ion-nav-push | ||
|
||
`NavPush` is a component used to navigate to the specified component. | ||
It is the element form of `NavController.push()` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is the element form of `NavController.push()` | |
It is the element form of calling the `push()`, `pop()`, and `setRoot()` methods on the navigation controller. |
@Element() el!: HTMLElement; | ||
|
||
/** | ||
* Component to navigate to. Only used if the `routerDirection` is `forward` or `root`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Component to navigate to. Only used if the `routerDirection` is `forward` or `root`. | |
* Component to navigate to. Only used if the `routerDirection` is `"forward"` or `"root"`. |
@Prop() component?: NavComponent; | ||
|
||
/** | ||
* Data you want to pass to the component as props. Only used if the `routerDirection` is `forward` or `root`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Data you want to pass to the component as props. Only used if the `routerDirection` is `forward` or `root`. | |
* Data you want to pass to the component as props. Only used if the `routerDirection` is `"forward"` or `"root"`. |
@Prop() componentProps?: ComponentProps; | ||
|
||
/** | ||
* It specifies the transition direction when navigating to another page. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* It specifies the transition direction when navigating to another page. | |
* The transition direction when navigating to another page. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { OverlayController, ToastOptions } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `toastController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `toastController` exported from core | |
* @deprecated Use the `toastController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { ComponentRef, OverlayController, PopoverOptions } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `popoverController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `popoverController` exported from core | |
* @deprecated Use the `popoverController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { OverlayController, PickerOptions } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `pickerController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `pickerController` exported from core | |
* @deprecated Use the `pickerController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { ComponentRef, ModalOptions, OverlayController } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `modalController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `modalController` exported from core | |
* @deprecated Use the `modalController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { LoadingOptions, OverlayController } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `loadingController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `loadingController` exported from core | |
* @deprecated Use the `loadingController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { AlertOptions, OverlayController } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `alertController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `alertController` exported from core | |
* @deprecated Use the `alertController` exported from core. |
@@ -3,6 +3,9 @@ import { Build, Component, ComponentInterface, Method } from '@stencil/core'; | |||
import { ActionSheetOptions, OverlayController } from '../../interface'; | |||
import { createOverlay, dismissOverlay, getOverlay } from '../../utils/overlays'; | |||
|
|||
/** | |||
* @deprecated Use the `actionSheetController` exported from core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated Use the `actionSheetController` exported from core | |
* @deprecated Use the `actionSheetController` exported from core. |
Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue Number: closes #18933
What is the new behavior?
Does this introduce a breaking change?
Other information