lundi 4 mai 2015

Multiple EmberJS Apps on Same Page in Liferay CMS

Background It is technically possible to load multiple ember apps on a single HTML page. When you are using a CMS like Liferay for an enterprise such scenarios may be un-avoidable as you have independent portlets on same page.

Question 1 How routing is handled in such case? I mean which emberApp routes would be called when user would change the URL in address-bar if there are multiple apps in different portlets on same page?

Question 2 How do we allow browsers to intelligently invoke right EmberApp based on some matched pattern in URL. The 2 ember apps in this case address seperate user concerns so it makes sense to design them as seperate portlets rather than making a single App.




Aucun commentaire:

Enregistrer un commentaire