Skip to content

ClearHistory and PageTransitions - #368

Merged
vakrilov merged 2 commits into
masterfrom
clear-history
Jul 26, 2016
Merged

vakrilov merged 2 commits into
masterfrom
clear-history

Conversation

@vakrilov

Copy link
Copy Markdown
Contributor

Added a way to:

  • Clear page navigation history
  • Specify page transition on navigation.

Resolves #218
Resolves #284

this.router.navigate(
this.commands,
{ relativeTo: currentRoute, queryParams: this.queryParams, fragment: this.fragment });
private getTrasnition(): { animated: boolean, transition?: NavigationTransition } {

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.

typo: getTransition

@vakrilov
vakrilov merged commit 9785e95 into master Jul 26, 2016
@vakrilov
vakrilov deleted the clear-history branch July 26, 2016 19:17
@NathanWalker

Copy link
Copy Markdown
Contributor

This is very exciting! Nice work @vakrilov can't wait to try this out 👍

@m-abs

m-abs commented Jul 26, 2016

Copy link
Copy Markdown
Contributor

Wuhu, thank you so much. I look forward to trying this out. 👍

@Sharique-Hasan

Copy link
Copy Markdown

Hey. I am sorry I might be doing something wrong but I could not find that.

this.routerext.navigate(['/gameShowHost'], {
            transition: {
                duration: 100,
                name: 'slideLeft',
            },
            clearHistory: true
        });

I am working on the nativescript-ui-samples-angular app. And I can go back to the previous page.

@mhmo91

mhmo91 commented Dec 7, 2017

Copy link
Copy Markdown

I'm having the same issue, clear history seems to work on the native router-outlet not the page-router-outlet

@vakrilov

vakrilov commented Dec 8, 2017

Copy link
Copy Markdown
Contributor Author

Hey #mhmo91 - can you please open an issue about that (or search if there isn't already one opened).

@AkshatGiri

Copy link
Copy Markdown

I cannot find any examples on page transitions. Can anyone point me to them.

@vakrilov

Copy link
Copy Markdown
Contributor Author

You can check the navigation article in the docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants