Z
Z
zlodiak2021-04-20 10:37:47
Angular
zlodiak, 2021-04-20 10:37:47

What is the difference between debugElement and nativeElement?

Please help me understand the difference between debugElement and nativeElement. Regarding the first, the documentation says the following:

The DebugElement associated with the root element of the component.
The debugElement provides insight into the component and its DOM element


Regarding the second, the documentation says the following:

The native DOM element at the root of the component.


As far as I understand, they both point to the root html element of the component template.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question