There often comes a time where we will need to modify the properties of an element in our application: its background color, or its position, or something else. By using
ElementRef we are able to easily get a reference to an element and its properties, and although we can modify the element’s properties directly through the
ElementRef, this is not the best way to do it.
In this video tutorial, we look at how to update DOM elements in a platform agnostic way with Angular’s Renderer.
Here’s the video:
NEW Create next level Ionic applications by harnessing the power of the Ionic Animations API and Gestures.
Utilise these powerful APIs to design and build your own custom animations and interactions. No external libraries required, everything is built with just Ionic. Learn more.