i was trying to access my element this way:
@ViewChild('addNodeDefinition' , {read: ElementRef}) editNodeModal: ElementRef;
but i get error:
'ElementRef' only refers to a type, but is being used as a value here.
my html:
<ng-template #addNodeDefinition></ng-template>
what's the problem? thanks