johnnyflinn / ngCytoscape

Angular directive for cytoscape.js
http://johnnyflinn.github.io/ngCytoscape
MIT License
17 stars 18 forks source link

Registering and using a cytoscape extension #20

Closed enjoiful closed 7 years ago

enjoiful commented 7 years ago

I'm trying to use a layout extension, cytoscape-cola (https://github.com/cytoscape/cytoscape.js-cola) with ng-cytoscape. I'm having trouble registering the layout -- is this possible with this angular wrapper?

enjoiful commented 7 years ago

Per the cytoscape docs (http://js.cytoscape.org/#extensions/api), to register an extension: cytoscape( type, name, extension );

How can I access the cytoscape object from the angular wrapper?

anvial commented 7 years ago

And what is the answer?

SanderBreivik commented 4 years ago

Was this closed because a solution was found?