Why when I use cytoscape in angular 7 there is a undefined error

时间:2019-02-18 00:36:52

标签: angular cytoscape.js

I am setting up angular and Cytoscape. When I initialized the node and edge, there is this error.

//ts file

import * as $ from 'jquery';
declare var cytoscape: any;
...
  cy = cytoscape({
    container: $('#cy')
    ...})

//html
<div id="cy">

</div>

0 个答案:

没有答案