DEV Community

Discussion on: Angular Size Observer: a library for styling DOM elements based on their size in the browser.

Collapse
johncarroll profile image
John Carroll Author • Edited on

There are multiple ways, but NgStyle and NgClass would be the most common and easiest choices. Also see: angular.io/guide/attribute-binding