Quantcast
Channel: Juri Strumpflohner – .NET Code Geeks
Viewing all articles
Browse latest Browse all 26

Learning Angular 2 – Conditionally add styles to an element

$
0
0
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 ...

Viewing all articles
Browse latest Browse all 26

Trending Articles