Answers for "como acessar um elementRef de um componente"

0

como acessar um elementRef de um componente

@ViewChild('FileDialog') FileDialog: ElementRef;

 open_dialog() {
        const e: HTMLElement = this.FileDialog.nativeElement;
        e.click();
    }

//no html criei a variavel FileDialog tbm
Posted by: Guest on March-30-2021

Code answers related to "como acessar um elementRef de um componente"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language