How to integrate two angular js modules from two different servers?

We want to develop a angular js module for our application and want to integrate in other angular js app. These apps renders from two different servers.

I have read about angular js multple modules and bootstraping them manually. But in those examples, both the modules are from same server.

In our case, they are two different angular js applications.

The applications are like this. App1: /mainapplication App2: /secondapplication Both the modules may use different version of angularjs.

Please let me know if it is possible or not, if yes, what are the ways to integrate it.

Answers


Use bower to manage dependencies. Create a component in a angular module, include this dependency in both projects and add module to both apps.


Need Your Help

Javascript vanilla ajax turn response into array of objects?

javascript arrays json ajax

I am trying to experiment with javascript on a deeper level. I am building my own $http object that has its own http methods.

Python data extraction and search

python parsing

I have data in a file in this format: