-1

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.

  • 1
    Please be more specific. What is preventing you using them from different domains? Did you even try it? – charlietfl Jan 25 '16 at 13:31
  • I did not try the integration. But i want to understand how route configurations work. The applications are like this. App1: /mainapplication App2: /secondapplication Both the modules may use different version of angularjs. – jeevanragula Jan 25 '16 at 13:37
  • That depends on how your app is set up. – charlietfl Jan 25 '16 at 13:39
  • if the other module is independent , just include the file(use full URL with servername and port) into the other project using script tags and add as a dependency in the controllers – Syed Faizan Mar 21 '16 at 06:30

1 Answers1

0

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

Serginho
  • 7,291
  • 2
  • 27
  • 52