title: How to make use of ng-if , ng-else in angularJS
body: <p>I want to compare id.here if id equals 5 do this, else do that.
  How can I achieve this?</p>
  
  <pre><code>&lt;div class="case" data-ng-if="data.id === '5' "&gt;
      &lt;input type="checkbox" id="{{data.id}}" value="{{data.displayName}}"
              data-ng-model="customizationCntrl.check[data.id1]"
              data-ng-checked="{{data.status}}=='1'" onclick="return false;"&gt;{{data.displayName}}
          &lt;br&gt;
  &lt;/div&gt;
  &lt;div class="case" data-ng-else&gt;
      &lt;input type="checkbox" id="{{data.id}}" value="{{data.displayName}}"
              data-ng-model="customizationCntrl.check[data.id]"
              data-ng-checked="{{data.status}}=='1'"&gt;{{data.displayName}}&lt;br&gt;
  &lt;/div&gt; 
  </code></pre>