Angular 2 How to Use ngif Show Alert Message on a condition


Example

<p class="alert alert-success" *ngIf="names.length > 2">Currently there are more than 2 names!</p>