Skip to content

Instantly share code, notes, and snippets.

@sjzabel
Created December 29, 2013 05:18
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 sjzabel/8167695 to your computer and use it in GitHub Desktop.
Save sjzabel/8167695 to your computer and use it in GitHub Desktop.
Creating a base route which will load the additional controller to the route.
"use strict";
App.BaseRoute = Ember.Route.extend({
renderTemplate: function () {
this._super();
this.loadAdditionalControllers();
}
,loadAdditionalControllers: function(){
this.render('flash',{
controller: 'flash'
,outlet: 'flash'
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment