Nativescript-angular: How to stop animated navigation using <page-router-outlet>?

Created on 28 Apr 2016  路  3Comments  路  Source: NativeScript/nativescript-angular

How can I stop animated navigation using <page-router-outlet>?

It seems to always navigate with animation here https://github.com/NativeScript/nativescript-angular/blob/77b943769949c339fc380fe80f21eec26c92e318/src/nativescript-angular/router/page-router-outlet.ts#L180

Is it possible to stop animated navigation in some way?

feature

Most helpful comment

Just to add to this, when we do add support for the new router it鈥檇 be nice if we supported all the other options that topmost().navigate() provides. I鈥檝e already had the need to clear history and configure transitions in my app.

All 3 comments

I don't think we've added the option for that yet, but we definitely should. Adding it shouldn't be too hard, but I'm not sure if making it work for the "old" (@angular/router-deprecated) router is worth the effort.

Maybe we should just keep this in mind when adding support for the new ng2 router.

Just to add to this, when we do add support for the new router it鈥檇 be nice if we supported all the other options that topmost().navigate() provides. I鈥檝e already had the need to clear history and configure transitions in my app.

There is little value in implementing support for this with the current router-deprecated package. We'll add this feature when we integrate the new router.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

samuelvisscher picture samuelvisscher  路  3Comments

vakrilov picture vakrilov  路  3Comments

EricRobertBrewer picture EricRobertBrewer  路  3Comments

tskweres picture tskweres  路  3Comments

sarvagayatri picture sarvagayatri  路  3Comments