Using AngularJS and jsPlumb (use jsPlumb functions in AngularJS controller)

Georgi Angelov picture Georgi Angelov · Jul 10, 2013 · Viewed 9k times · Source

So I have a project that I am working on and it requires that I use jsPlumb for graphical elements connections and I am building my app entirely using AngularJS.

What is the procedure to follow if I want to include another library's code into my controller (to fire up some jsPlumb code, say on ng-click) or any other part of my AngularJS code? Should I do that or why should I not do that?

Answer

Mr MT picture Mr MT · Jan 18, 2014

Take a look at this well-commented jsPlumb/angularJs integration example:

https://github.com/mrquincle/jsplumb-example