Skip to content

[Vue] Update IonVueRouter direction type - #17901

Merged
mhartington merged 4 commits into
ionic-team:masterfrom
ModusCreateOrg:direction-type
Apr 8, 2019
Merged

mhartington merged 4 commits into
ionic-team:masterfrom
ModusCreateOrg:direction-type

Conversation

@michaeltintiuc

Copy link
Copy Markdown
Contributor

As per our talk with Mike, the router's direction should be using @ionic/core's RouterDirection type.

This allows us to utilize 3 animation directions: forward, back and root.
The latter is used to disable animations during transitions.
This approach is far easier on developers than passing meta props to routes or mutating the ion-vue-router's animated prop (which can still be set to false in order to globally disable animations).

@ionitron-bot ionitron-bot Bot added the package: vue @ionic/vue package label Mar 28, 2019
@mhartington
mhartington merged commit fa13173 into ionic-team:master Apr 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants