I am working on a set of enterprise style applications that share some common functionality. An example of this would be navbar functionality such as sorting/ breadcrumbs, etc. It seems pretty straight forward to allow this by creating multiple modules. I have an example plnkr of what I am talking about.
var appWrap = document.getElementById('app');
angular.element(appWrap).ready(function() {
angular.bootstrap(appWrap, ['plunker']);
});
var appWrap2 = document.getElementById('app2');
angular.element(appWrap2).ready(function() {
angular.bootstrap(appWrap2, ['plunker2']);
});
My question is, when I need to send a value from app to app2 what would I do? Would I just create some sort of JS listener?