What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-21 01:58:03
angular viewchild set attribute
// If you call console.log on one of the button elements, you can see that it is an instance of ElementRef, not HTMLElement. // So... // Import ElementRef from @angular/core: import {Component, ViewChild, ElementRef} from '@angular/core'; // Change the... Add solution