ember.js - Ember JS and Multiple single page apps -
say have web app - large, complex, rails app, accounting application. see use several single page apps instead of typical rails round tripping pages. example, can see user better served intuitive single page/dynamic app for:
- creating bank reconciliation
- creating invoice
- filling out time report
- etc..
these distinct 1 page apps...
all ember apps see single page , single purpose.
i want have many single page apps, built ember. how respect to:
routes: i'd have combination of server routes , client routes. how in ember? serve different ember applications, each own application router , routes?
templates: "applets" compiled , pushed down client on load? or leverage require.js , load each single page app depending on if they're navigated to? ...
can 2 questions? in advance!
routes: i'd have combination of server routes , client routes. how in ember? serve different ember applications, each own application router , routes?
depends on how overlap there in terms of features. sure serve different ember applications own router , routes. in case write shared library common base classes , mixins.
an alternative have single ember application looks , behaves differently depending on route. that's start until have feel ember , see compelling reason split things apart.
templates: "applets" compiled , pushed down client on load? or leverage require.js , load each single page app depending on if they're navigated to? ...
path of least resistance in rails use sprockets compile , package templates - once compiled javascript. typically rails app bundle javascript application.js , include on load. alternative split application-specific code , templates app1.js, app2.js, etc. , load each when app navigated to.
Comments
Post a Comment