Skip to content

fix(angular): back button goes back to proper tab - #18005

Merged
liamdebeasi merged 6 commits into
masterfrom
angular-tab-back-button
Apr 10, 2019
Merged

liamdebeasi merged 6 commits into
masterfrom
angular-tab-back-button

Conversation

@liamdebeasi

@liamdebeasi liamdebeasi commented Apr 9, 2019 •

Copy link
Copy Markdown
Contributor

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 added / updated (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: #17278 #15216

What is the new behavior?

  • When using ion-back-button, the stack controller will now check to see if there is any savedData in the view. If there is, it will attempt to restore whatever state there was before.

Does this introduce a breaking change?

  • Yes
  • No

Other information

@ionitron-bot ionitron-bot Bot added the package: angular @ionic/angular package label Apr 9, 2019
@liamdebeasi
liamdebeasi marked this pull request as ready for review April 9, 2019 14:53
@liamdebeasi liamdebeasi changed the title fix(angular): back button reactivates proper tab fix(angular): back button goes back to proper tab Apr 9, 2019

@mhartington mhartington left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@frenmanoj frenmanoj left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit: Reusing the variable

@liamdebeasi
liamdebeasi merged commit 52e5a8d into master Apr 10, 2019
@liamdebeasi
liamdebeasi deleted the angular-tab-back-button branch April 10, 2019 20:19
@pipoa

pipoa commented Apr 12, 2019

Copy link
Copy Markdown

@liamdebeasi greate work! 🎉🎉🎉
waiting for this for a long long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants