lundi 26 janvier 2015

pod structure for ember component not working - embercli

using ember-cli: 0.1.9


First I tried creating a simple component with ember g component my-component.


It created the following files



installing
create app/components/my-component.js
create app/templates/components/my-component.hbs
installing
create tests/unit/components/my-component-test.js


This worked fine I could then use {{ my-component }} from my templates.


But then I tried to create the same component in pod structure with the --pod flag it doesn't work. Calling this component while in POD structure does not seem to do anything when I try to call this component.


ember g component my-componenttwo --pod



installing
create app/pods\components\my-componenttwo/component.js
create app/pods\components\my-componenttwo/template.hbs
installing
create tests/unit/pods\components\my-componenttwo/component-test.js


I configured in app/config/environment.js the following podModulePrefix: 'app/pods',





Aucun commentaire:

Enregistrer un commentaire