I have read NgStyle Documentation For Angular 2, and it is a little bit confusing for me. How do I use NgStyle with condition like (if...else) to set background image of any
Server with ID: {{serverId}} is {{getServerStatus()}}
or you can also use something like this:
and in the *.ts
getColor(){return this.serverStatus === 'Offline' ? 'red' : 'green';}