Skip to content
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

Merged
merged 12 commits into from
Aug 27, 2019

Conversation

manucorporat
Copy link
Contributor

@manucorporat manucorporat commented Jul 26, 2019

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Lint (npm run lint) has passed locally and any fixes were made for failures

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Issue Number: closes #18933

What is the new behavior?

Does this introduce a breaking change?

  • Yes
  • No

Other information

@ionitron-bot ionitron-bot bot added the package: core @ionic/core package label Jul 26, 2019
@manucorporat manucorporat marked this pull request as ready for review August 27, 2019 14:49
@@ -0,0 +1,21 @@
# ion-nav-push
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# ion-nav-push
# ion-nav-link

@@ -0,0 +1,21 @@
# ion-nav-push

`NavPush` is a component used to navigate to the specified component.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`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()`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @deprecated Use the `actionSheetController` exported from core
* @deprecated Use the `actionSheetController` exported from core.

@manucorporat manucorporat merged commit c3044f5 into master Aug 27, 2019
@manucorporat manucorporat deleted the feat-nav-link branch August 27, 2019 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Add ion-nav-link
2 participants