title: How to change styles according to data type in ng-repeat
body: <p>I'm trying to make ng-repeat propagate a list from an array containing trues and falses. How do I make it so that the falses are in red, and the trues are in green?</p>
  
  <p>This is my code right now: </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$scope.profileCompare = {
  
          You: {
              name: "You",
              questionAnswer: [false, true, false, false, false, false],
              questionImportance: [false, true, false]
          },
          Pizza: {
              name: "Pizza",
              questionAnswer: [true, false, false, false, false, false],
              questionImportance: [false, false, true]
          },
          Greenie: {
              name: "Greenie",
              questionAnswer: [false, true, false, false, true, false],
              questionImportance: [true, false, false]
          }
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>  &lt;h2 ng-repeat-start="(key, value) in profileCompare"&gt;{{key}}&lt;/h2&gt;
    &lt;ul class="comparison-list"&gt;
      &lt;li ng-repeat="importance in value.questionImportance track by $index"&gt;
        {{importance}}
      &lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul ng-repeat-end class="comparison-list"&gt;
      &lt;li ng-repeat="answer in value.questionAnswer track by $index" ng-if="answer == true" style="color: green"&gt;
      {{answer}}
      &lt;/li&gt;
      &lt;li ng-repeat="answer in value.questionAnswer track by $index" ng-if="answer == false" style="color: red"&gt;
      {{answer}}
      &lt;/li&gt;
    &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This isn't doing it, because it goes through the array once and puts all the trues in the front not showing any falses, then it goes through the array again and shows the falses and no trues.</p>
  
  <p>How do I make it so it shows a green true and a red false at the proper positions?</p>