I need to change the class depends on value in angular2
<p class="pull-right" [ngClass]="">Status: {{payment.status}}</p>
For example:
If the status is failed. I need to add class "Fail". If the status is success, I need to change the class as "Success". How do i do this?.