Quantcast
Viewing all articles
Browse latest Browse all 4826

Ember cli places js file inside templates dir if i try `ember generate route overview --in-repo app-mgmt`

@Mohana_Priya wrote:

I have been trying ember engines recently and was using ember cli for generating my routes and controllers. I have created an app called engnTest and created an in-repo-engine 'user-profile' inside. Things were working fine unless i tried generating a route inside user-profile engine. It had generated a overview.js file inside the templates dir.

Ember version used: Ember Octane (3.15.2)

ember generate route overview --in-repo user-profile

Files created:

engnTest/lib/user-profile/app/routes/overview.js

engnTest/lib/user-profile/app/templates/overview.js

engnTest/lib/user-profile/addon/routes/overview.js

engnTest/lib/user-profile/addon/templates/overview.hbs

Someone help me find why this happens ? Why are files generated inside addon ?

Thanks in advance, Mohanapriya C

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles