lundi 27 janvier 2020

Else If in angular 8

i have two variables isLoader and isError, when isLoader is true a img will appear and when isError is true that img should disappear.

 if(isLoader == true){
  <img src="#" alt="" style="display:block;">
  }

 else if(isError == true){

  <img src="#" alt="" style="display:none;">
  }

how to apply this if-else statement in angular.

Aucun commentaire:

Enregistrer un commentaire