What is the point of calling “renderer.invokeElementMethod(rendererEl, methodName)”?

Technology Community › Category: Angular › What is the point of calling “renderer.invokeElementMethod(rendererEl, methodName)”?
VietMX Staff asked 5 years ago

The purpose of invokeElementMethod is to invoke a method on a particular element but avoid direct DOM access (so we don’t tie our code just to the browser).