Skip to content

Instantly share code, notes, and snippets.

@jakehow
Created May 24, 2012 20:33
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 jakehow/41547193a6219710a3e5 to your computer and use it in GitHub Desktop.
Save jakehow/41547193a6219710a3e5 to your computer and use it in GitHub Desktop.
Simple Router Example
App.Router = Ember.Router.extend
location: 'hash'
enableLogging: true
rootElement: '#app'
start: Ember.State.extend
index: Ember.State.extend
route: '/'
ready: (manager) ->
manager.transitionTo('splash')
splash: Ember.ViewState.extend
route: '/splash'
view: App.SplashView
about: Ember.ViewState.extend
route: '/about'
view: App.AboutView
@jakehow
Copy link
Author

jakehow commented May 25, 2012

@grasscode thanks for commenting. I am running off of head and setup just like the other gist. Still cannot get route to work as I expect though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment