ngStyle in Angular 4

Styling Elements Dynamically with ngStyle

<p [ngStyle]="{backgroundColor: black}">{{ 'Server' }} with ID {{ serverId }} is {{ getServerStatus() }}</p>

Leave a Reply

Your email address will not be published. Required fields are marked *