Is there any way to split an Ember.js app across a few files?

后端 未结 4 1802
清歌不尽
清歌不尽 2021-02-02 16:41

I\'ve just written my app.js file and everything is nicely working but the whole file is currently 450 lines long and will be getting bigger.

Is there

4条回答
  •  耶瑟儿~
    2021-02-02 16:49

    You can use RequireJS to load you ember app (including handlebars templates) from different files.

    This answer describes how and also links to a sample app showing how to set things up. I have just tried this approach to one of our websites and it works nicely.

提交回复
热议问题