Created
December 29, 2013 05:18
-
-
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.
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
"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