vendredi 20 mars 2015

How do I customize the view element for the application.hbs template?

In an app generated by ember-cli, the html generated by application.hbs is wrapped in a view:



<body class="ember-application">
<div id="ember284" class="ember-view">
</div>
</body>


If I create a component, I have a component-name.js file where I can specify options to modify the component:



export default Ember.Component.extend({
tagName: 'nav',
classNames: ['main-menu'],
layout: layout
});


How do I modify the attributes of the element that is wrapping the application.hbs template?





Aucun commentaire:

Enregistrer un commentaire