I have a graph.component.ts
this.cContainer = cytoscape ( {
ready: function(e) {
this._dataService.setResultData();
}
});
but I get
ERROR TypeError: Cannot read property 'setResultData' of undefined
..so this
seems to be unknown, which looks correct because I am within a callback and so this
is referred to the ready
-callback.
but how would I call _dataService.setResultData()
from inside this ready()
-callback?