lundi 30 janvier 2017

EmberJs - Is there a way to tell ember to insert the main-view after the rootElement?

Hi I would like to know if the is a way to tell ember to initialize immediately after the root Element?

For example I have this DOM Structure:

<div id="#bodyContent" class="ember-application">
   <div data-name="ContentPlaceHolderMain">
   </div>
   <div id="ember357" class="ember-view">
   </div>
</div>

But I Want ember to be first on the DOM:

<div id="#bodyContent" class="ember-application">
   <div id="ember357" class="ember-view">
   </div>
   <div data-name="ContentPlaceHolderMain">
   </div>
</div>

In my enviroment.js file I have this line:

ENV.APP.rootElement = "#bodyContent";

Is there any way to achieve this?




Aucun commentaire:

Enregistrer un commentaire