title: Calculate the sum of values for each ng-model in array angularjs
body: <p><code>
   {
      "specific":
      {
          "first":{
              "title":"222",
              "items":[
                  {
                      "z": "1",
                      "s":"2",
                      "p":"3",
                  },
                  {
                      "z": "12",
                      "s":"12",
                      "p":"12"<br>
                  }
              ],
                 "results":{
                      "z": "13",
                      "s":"14",
                      "p":"15"
                  }
          }
      }
  }
  </code></p>
  
  <pre><code>&lt;div class="row" ng-repeat="(item, q)  in first.items"&gt;
    &lt;input ng-model="q.z"&gt;
    &lt;input ng-model="q.s"&gt;
    &lt;input ng-model="q.p"&gt;
  </code></pre>
  
  <p></p>
  
  <p>Results should calculate the values for repeated elements in items (for example, <code>item1.z + item2.z = results.z</code>).</p>
  
  <p>How can I calculate the values for each repeated element for item in items with angularJS?</p>