title: AngularJS Dropdown ng-if on ng-repeat element
body: <p>I'm building a twitter bootstrap list using angular's ng-repeat:</p>
  
  <pre><code>&lt;ul class="dropdown dropdown-menu"&gt;
      &lt;li class="menuOption" ng-repeat="option in options"&gt;
          &lt;a data-ng-click="option.value&gt;0 ? foo() : goo()"&gt;
          {{option.label}}
          &lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Now, I want to include a divider (<code>&lt;li class="divider"&gt;&lt;/li&gt;</code>) inside this list. It should be before the last element in the list (which is also indicated by <code>option.value</code> with a negative value, which is probably an easier indication).</p>
  
  <p>My problem is that since the ng-repeat iteration is on the <code>li</code> element itself, I couldn't find a way to use <code>ng-if</code> on this element.</p>