'Implementing Cytoscape-angular with context menu in angular project

I have a CytoscapeGraphComponent with some example data taken from https://github.com/michaelbushe/cytoscape-angular. I would like to implement a context menu - https://github.com/iVis-at-Bilkent/cytoscape.js-context-menus. However the graph is initialized with cytoscape-graph component in html, and not in the 'traditional' way as they show in context menus docs, so I dont have access to cy variable. Therefore there is no possibility to refer to it to add the context menu. Is there a way to refer to this graph to implement the menu?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source