Hi, as you know, when using an outlet, the content that’s being inserted in that outlet is wrapped inside a div, with class ember-view
.
I’d like to add a custom class for these outlet generated divs, so I can set a height of 100%
, making the full height available to some nested elements.
So can I do this?
Thanks you.
UPDATED: Ok, I found the answer, you have to overwrite the default, auto-created view for the route.
Example: ember generate view application
In views/application.js
export default Ember.View.extend({
classNames: ['main']
});