Here we’re going through a couple of ways to conditionally apply some styles to a DOM element in Angular 2. Directly manipulating styles property A rather unconventional way would be to return the styling property as a string and then to directly set it on the desired element: //our root app component import {Component} from ...
↧