title: Set value in HTML with AngularJS
body: <p>I'm using Angular JS. I loop out a part of a scope that from the start is a JSON array.</p>
  
  <p>I need to check for if a value in that array exists. If it does it should do something. The following code work but I can't figure out a way to save "status" temporary.</p>
  
  <pre><code>&lt;div ng-repeat="item_value in item['slug'].values"&gt;
      {{item_value}}
      &lt;div ng-if="item_value == 'dogs_cats'"&gt;
          Somehow save "status" to true when above is equal.
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;div ng-if="status == 'true'"&gt;
      Do someting here.
  &lt;/div&gt;
  </code></pre>
  
  <p>Maybe my approach is wrong. Maybe this should not go in the template? I like different solutions to choose from and suggestions on which would be prefered.</p>