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


in app generated ember-cli, html generated application.hbs wrapped in view:

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

if create component, have component-name.js file can specify options modify component:

export default ember.component.extend({   tagname: 'nav',   classnames: ['main-menu'],   layout: layout }); 

how modify attributes of element wrapping application.hbs template?

create file in app/views directory follows naming conventions, application.js

import ember "ember";  export default ember.view.extend({   classnames: ['my-app-view']   // application view }); 

now confirm works inspecting html:

<body class="ember-application">   <div id="ember287" class="ember-view my-app-view">     <h2 id="title">welcome ember.js</h2>   </div> </body> 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -