Views are gone since Ember 2.0.0, but you could do this:
// app/views/application.js or app/application/view.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: []
});
In Ember CLI 2.8 this workaround no longer works, looks like the views folder is now being ignored. However, the Ember inspector still shows this for the application view:
view:foobar@view:toplevel
And the HTML is:
<div id="ember420" class="ember-view"><h2>application</h2>
</div>
So, there must be a way to customize the view.
Aucun commentaire:
Enregistrer un commentaire