title: AngularJS plus/minus toggle
body: <p>What is the best way to add plus/minus toggle on number input field when using <code>ng-repeat</code></p>
  
  <p>I tried like this but it doesn't work:</p>
  
  <pre><code>&lt;div ng-repeat="item in PC.Items"&gt;
    &lt;button ng-click="PC.minus()" class='btn btn-default'&gt;-&lt;/button&gt;
              &lt;input ng-model="item.Quantity"
                      type='number'
                      name='Quantity'/&gt;
              &lt;button class='btn btn-default' ng-click="PC.plus()"&gt;+&lt;/button&gt;
  &lt;/div&gt;
  
         vm.plus = function() {
              vm.Quantity++;
              console.log(vm.Quantity);
          };
          vm.minus = function() {
              vm.Quantity--;
          };
  </code></pre>
  
  <p>Thnx :)</p>
  
  <p><a href="https://i.stack.imgur.com/ywcKs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ywcKs.png" alt="enter image description here"></a></p>