Angular 2: Difference between revisions

Jump to navigation Jump to search
Line 25: Line 25:


<div [ngStyle]="{color: 'white', 'background-color': 'blue'}">testing</div>
<div [ngStyle]="{color: 'white', 'background-color': 'blue'}">testing</div>
<span [ngStyle]="{color: 'red'}" [style.font-size.px]="fontSize">red text</span>
</syntaxhighlight>
</syntaxhighlight>


Navigation menu