mardi 3 février 2015

Ember composing a huge page. render vs with

I'd like to know which is the best approach when building a huge page in emberjs.


I use to have a big model that is loaded by a route object and a big controller that presents this model and its dependencies. The main template use to contain lots of {{render 'subtemplate' submodel}} tags in order to delegate a piece of the page to another template/controller. What is the Ember way of doing this? using render or using with helper?


Im trying to figure out how to compose a page from multiple views in order to split responsabilities of each page section to its own object (controller) instead of having a big controller that manages all logic.


Thanks in advance


Aucun commentaire:

Enregistrer un commentaire