title: ng-repeat with optional attribute based on repeated item
body: <p>What is the best way to get around this problem of having an optional attribute on an <code>ng-repeat</code> node:</p>
  
  <pre><code>&lt;div ng-repeat="slice in pizza" mozzarella&gt;
    {{slice.name}}
  &lt;/div&gt;
  </code></pre>
  
  <p>I only want the <code>mozzarella</code> attribute to be there at specific slices. I suspect there is no easy fix for this. Maybe there is a plugin that has a nifty way of solving the issue?</p>
  
  <p>The implementation that I am looking for would possibly look similar to the ng-class directive:</p>
  
  <pre><code>&lt;div ng-repeat="slice in pizza" 
       ng-optional-attr="{'mozzarella': slice.mozzarella}"&gt;
    {{slice.name}}
  &lt;/div&gt;
  </code></pre>