title: ng-repeat + ng-change - AngularJs
body: <p>I'm still learning AngularJs and I've run into a situation that I can't seem to find any answer for (though I have found lots of answers that touch on the subject...nothing quite like what I need).</p>
  
  <p>I have the following ng-repeat with the ng-model inside of it. This is working fine:</p>
  
  <pre><code>&lt;tr ng-repeat="option in orderLine.options"&gt;
     &lt;td&gt;
        &lt;input ng-change="updateOptionsTotal(option.price)" ng-model="option.price" value="{{ option.price }}"&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>Outside of the ng-repeat, I have the following as well:</p>
  
  <pre><code>&lt;input value="{[{ options.total }]}" disabled&gt;
  </code></pre>
  
  <p>This line will simply be the TOTAL of all of the option.price in the ng-repeat. </p>
  
  <p>However, when I go to make a change in the input inside of the ng-repeat...I don't know how to grab all of option.prices (as there could be many) and add them all up to create the new total. I have the updateOptionsTotal method in the $scope...but as of right now it's just blank as I'm not sure how to go about doing what I need done.</p>
  
  <p>Any pointers would be appreciated. Thank you!</p>