-
-
Save jakehow/41547193a6219710a3e5 to your computer and use it in GitHub Desktop.
Simple Router Example
This file contains hidden or 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 = 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 |
@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
Been looking into this some more. Not sure if we're having same problem, but here's what I found out:
Seems like routing is changing every few hours....
Ember routing is changing crazy fast right now, so stuff that works