2
votes

I am brand new to ember... working through the ember guides AND trying to apply that same knowledge through the ember-cli guides simultaneously.

I am noticing there there are a few big gaps in logic between the two when it comes to the ES6 Resolver and it is causing problems for me, particularly when i want to reference things like ApplicationRoute, ApplicationController, and the like.

I have to ask, for my own sanity, how to I define an ApplicationRoute or an ApplicationController? Are they saved as application.js or index.js?

1

1 Answers

3
votes

ApplicationRoute would be saved under app/routes/application.js, ApplicationController would be saved as app/controllers/application.js.

as long as those files export default the proper subclassed Route or Controller, respectively, everything should be fine.