What is elementRef in Angular

Imgur

What is ElementRef in Angular

According to the official docs. Angular ElementRef is a wrapper around a native element inside of a View. It’s simply a class that wraps native DOM elements in the browser and allows you to work with the DOM by providing the nativeElement object which exposes all the methods and properties of the native elements
Reactions

Post a Comment

0 Comments

Close Menu