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

Technology CommunityCategory: AngularWhat is the point of calling “renderer.invokeElementMethod(rendererEl, methodName)”?
VietMX Staff asked 3 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).