Safely Modifying Elements with ElementRef & Renderer in Ionic

By Josh Morony

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.

Read the full article....

Share on Google Plus

About www.

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment


Post a Comment