Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boy-jer/6028052 to your computer and use it in GitHub Desktop.
Save boy-jer/6028052 to your computer and use it in GitHub Desktop.
animations in emberjs router
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