title: Divide One Object Property Value by Another (AngularJS)?
body: <p>I have an ng-repeat for data values from an object. </p>
  
  <pre><code>&lt;div ng-controller="myctrl"&gt;
    &lt;ul ng-repeat="number in numbers"&gt;
      &lt;li&gt;&lt;span ng-bind="number.first"&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span ng-bind="number.second"&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li&gt;&lt;span ng-bind="number.third"&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>One of the object property values is dependent on the value of other property values (I want the value of third to be first / second).</p>
  
  <pre><code>.controller('myctrl', function($scope) {
  
      $scope.numbers = [
          {
          first: 8,
          second: 5,
          third: ? (I need this to be first / second)
          },
  
          {
          first: 4,
          second: 5,
          third: ? (I need this to be first / second)
          }
    ];
  
  });
  </code></pre>
  
  <p>I must have set this up fundamentally wrong because I find it hard to imagine it should be this difficult and I haven't worked with AngularJS or js in general much in the past 12 months so chances are I've gone about the ng-repeat all wrong. </p>