title: Angular 1.5 compare ng-repeat $index with number
body: <p>I'm trying to do something very simple in Angular but can't seem to get it working. I want to use an ng-repeat and compare the $index with a number. somehow there is an error in my code, but i cannot find it. Any help will be uch appreciated. Cheers!</p>
  
  <pre><code>  &lt;li ng-repeat="(key, structure) in structures"&gt;
        {{ $index }}
  
        &lt;div class="row"  ngIf="{{$index}} == 1"&gt;
             &lt;div class="col8 itemBox"&gt;&lt;/div&gt;
             &lt;div class="col4-odd-fix itemBox"&gt;&lt;/div&gt;
        &lt;/div&gt;
        &lt;input style="display: inline-block" name="structure" type="radio" value="{{key}}" ng-model="$parent.structure" required&gt;
             {{key}}
      &lt;/li&gt;
  </code></pre>