i’ve red quite a of lot tuts and articles on ember.js and made some basic stuffs - some sanbox and test things, complete login screen with many outlets, actions, ajax and so on… but I am now facing one problem.
Ember.js is for “Single Page Application” and I did not found a way (yet?) how can I make and share basic functionality across more “ember apps”/parts/pages?
I have some backend and then some modules (users, files, news,…) and each is made by classic:
App = Ember.Application.Create()
But I need to have some shared functionality and I dont want to repeat in at each app - I want to be able to show some notification - once from user app then from files app and so on. Or to have unified modal window, or function that check some things in background on server and push updates to notifications area that is running on each of those app parts…
How should I solve it? Is there any way of extending base App? or have to separates App on one page that comunicates to each other? I¨ve also red something about Ember namespaces but I am not sure if it is the right thing and how to user it
note: Each module (dashboard, users, files,…) is loaded as new page (complete html, new scripts,…), but module itself work as a SPA and on AJAX.
Ember.js has awesome documentation but real word example articles on how to use it are showing slowly and I had no lucky finding some tut/article on solving this problem in real world.
Any code examples, tips, articles, tutorials or sample app would be great!
thank you very much!