title: Else If in angular 8
body: <p>I have two variables <code>isLoader</code> and <code>isError</code>, when <code>isLoader</code> is true an img tag should be visible and when <code>isError</code> is true that img  tag should be hide. </p>
  
  <pre><code> if(isLoader == true){
    &lt;img src="#" alt="" style="display:block;"&gt;
    }
  
   else if(isError == true){
  
    &lt;img src="#" alt="" style="display:none;"&gt;
    }
  </code></pre>
  
  <p>How to apply if-else statement in angular?</p>