hi, i have a problem with gojs nodes context menus integration in Angular 7.
i have this code snippet that throws me an error a strange Error
Code:
this.diagram.nodeTemplate.contextMenu =
this.('ContextMenu',
this.(‘ContextMenuButton’,
this.$(go.TextBlock, ‘Edit Tasks’), { click: myModal.show()}
)
);
Error:
Argument of type ‘“ContextMenuButton”’ is not assignable to parameter of type ConstructorType <string>’.
i really don’t have any idea why, i am following your samples from github.
any help is much appreciated
PS: this.$ is a shorthand for go.GraphObject.make;