I'd like to use Cytoscape.js in my Ember project. So I installed the dependency: npm install --save cytoscape. Next I created my Ember component. When I write the component js file, I cannot find out, how to import Cytoscape. I tried import cytoscape from "cytoscape", var cytoscape = require("cytoscape") however none of these works.
So how to properly "include" cytoscape to my component?
Aucun commentaire:
Enregistrer un commentaire