lundi 5 octobre 2015

Use angular JS widget in other JS frameworks

This might sound crazy.

Description: I have few widgets made by using angular, nvd3, bootstrap, etc. These widgets have charts and some other functionality. Each widget has template, angular controller and independent angular service to load data. I can integrate it easily with other angular framework.

Question: How can i use these angular widget in other application which is developed by using other framework like Ember, React, EXt.js, etc.

Do i need different JS code for each framework i want to integrate? or it could be one piece of JS for any framework? i can dynamically load JS frameworks from CDN needed for the widget (if widget is integrated)

Does this even possible? sorry for dump question.

Concern: Every framework has different approach to bootstrap application. Most likely i have to write code to link widget for each JS framework.

Real question: I am looking for some conceptual guideline or approach that i can take to solve this problem.

Thanks for your time




Aucun commentaire:

Enregistrer un commentaire