Angular Flowchart diagram.makeSvg()

Having the Angular Flowchart Example.

How can I access the diagram variable https://github.com/NorthwoodsSoftware/GoJS/blob/master/samplesangular.html#L22 within the directive to call the makeSvg function.

makeSvg() like in https://github.com/NorthwoodsSoftware/GoJS/blob/master/samples/flowchart.html#L245

I assume you do not mean “the diagram variable” because you have no global variable for that, but instead you are really asking:
“How can I access the Diagram from an HTMLElement?”

The answer is to call the static function Diagram.fromDiv. I’m assuming you can get to that DIV element.

Thx for pointing me to the static function Diagram.fromDiv.