mercredi 8 novembre 2017

Ember, remove wrapping element or change classNames for route

I'm trying come back to ember.js after 2 years working with another frameworks. Most annoying "surprise" for me is there no views anymore, therefore i cannot customize html elements using something like classNames or tagName. To be more detailed I'll explain what is my problem relative for:

Lets pretend we have created route, /myroute for instance. Content of our templates/myroute.hbs is:

<div>test</div>

Ok, lets see our html using inspector:

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

I'd like to know how i can remove this element <div id="ember341" class="ember-view"> in a new ember way, how i can change class property, tag ?

Thanks !




Aucun commentaire:

Enregistrer un commentaire