-
-
Save boy-jer/6028052 to your computer and use it in GitHub Desktop.
animations in emberjs router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App.Router.map -> | |
@route "a" | |
@route "b" | |
@route "ab" | |
@route "ba" | |
App.ARoute = Em.Route.extend | |
events: | |
animateToB: -> | |
@transitionTo('ab') | |
animate => | |
@transitionTo('b') | |
App.BRoute = Em.Route.extend | |
events: | |
animateToA: -> | |
@transitionTo('ba') | |
animate => | |
@transitionTo('a') | |
App.AbRoute = Em.Route.extend | |
isInaccessibleByURL: true | |
App.BaRoute = Em.Route.extend | |
isInaccessibleByURL: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment