title: AngularJS: How to set a variable inside of a template?
body: <p>How can I avoid having the <code>{{f = ...}}</code> statement in the third line print out the content of <code>forecast[day.iso]</code>?</p>
  
  <p>I want to avoid using <code>forecast[day.iso].temperature</code> and so on for every iteration.</p>
  
  <pre><code>&lt;div ng-repeat="day in forecast_days"&gt;
    {{$index}} - {{day.iso}} - {{day.name}}
    {{f = forecast[day.iso]}}
    Temperature: {{f.temperature}}&lt;br&gt;
    Humidity: {{f.humidity}}&lt;br&gt;
    ...
  &lt;/div&gt;
  </code></pre>