-
-
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.