samedi 10 janvier 2015

Ember doesn't resolve templateName when I create a view

When I create a view, Ember is not able to resolve the templateName anymore and I need to specify it.


I have this structure:



/templates
---/my-page.hbs

/views
---/my-page.js


The view just contain this code:



import Ember from 'ember';

export default Ember.View.extend({
classNames: ['my-page']
});


If I don't specify the templateName, it's not able to resolve it automatically. If I remove the view, the template is properly rendered.


Any idea what I can do to make it resolve the view automatically?


I'm currently running Ember-CLI 0.1.5 with Ember 1.8.1


Thanks.





Aucun commentaire:

Enregistrer un commentaire