1.

How to display the error message from backend in angular2?

Answer»

To DISPLAY error message in Angular 2 from BACKEND, we have to set the error message equal to an angular variable, and then check whether that variable exists to CONFORM whether to display it or not.

<div *NGIF="errors" class="alert alert-danger">
    {{ errors }}
</div>

 



Discussion

No Comment Found