I'm using bootstrap Modal window for adding a new member for my site, to open it, since I'm using AngularJS, I have to add a ng-click="open()"
parameter to a button, but since a plugin I'm using is generating buttons using JS, I don't really see how I can add it to the JS code, it looks like this:
case "add":
var itemZ = new primitives.orgdiagram.ItemConfig();
itemZ .title = "Z Title";
itemZ .description = "Z Description";
itemZ .image = "http://www.basicprimitives.com/demo/images/photos/z.png";
data.context.items.push(itemZ);
jQuery(".basicdiagram").orgDiagram("update", primitives.orgdiagram.UpdateMode.Refresh);
break;
so is there a way I could sneak in that ng-click property?