Skip to content

Instantly share code, notes, and snippets.

@stevekane
Created April 22, 2013 21:20
Show Gist options
  • Save stevekane/5438647 to your computer and use it in GitHub Desktop.
Save stevekane/5438647 to your computer and use it in GitHub Desktop.
problem w/ router
App.Router.map(function() {
this.route("menu", {path: "/menu"});
});
App.IndexRoute = Ember.Route.extend({
setup: function (context) {
this._super(context);
console.log('yo');
},
redirect: function() {
console.log('inside redirect');
this.transitionTo('menu');
}
});
App.MenuRoute = Ember.Route.extend({
setup: function(context) {
this._super(context);
console.log('setup fired for menu route');
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment