Skip to content

ClearHistory and PageTransitions #368

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

Merged
merged 2 commits into from
Jul 26, 2016
Merged

ClearHistory and PageTransitions #368

merged 2 commits into from
Jul 26, 2016

Conversation

vakrilov
Copy link
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
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
Contributor

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

@m-abs
Copy link
Contributor

m-abs commented Jul 26, 2016

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

@Sharique-Hasan
Copy link

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
Copy link

mhmo91 commented Dec 7, 2017

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

@vakrilov
Copy link
Contributor Author

vakrilov commented Dec 8, 2017

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

@AkshatGiri
Copy link

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

@vakrilov
Copy link
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