Have you tried this…
Set value:
this.elementRef.nativeElement.setAttribute("name", "myName");
or
Get value:
this.elementRef.nativeElement.getAttribute("name");
solved How to get element name in Angular?
Have you tried this…
Set value:
this.elementRef.nativeElement.setAttribute("name", "myName");
or
Get value:
this.elementRef.nativeElement.getAttribute("name");
solved How to get element name in Angular?