title: angularjs dynamic form field inside ng-repeat
body: <p>Hi I have problem in adding form field and binding inside the ng-repeat<br>
  my form is like this</p>
  
  <pre><code>    &lt;div ng-repeat="(key, value) in categories"&gt;
  
          &lt;div class="col-sm-12"&gt;&lt;b&gt;{{ value.name }}&lt;/b&gt;&lt;/div&gt;
              &lt;div class="col-sm-12" &gt;       
                  &lt;div class="col-sm-3"&gt;
                    &lt;label&gt;Product&lt;/label&gt;
                    &lt;input 
                     type="text" 
                     class="form-control input-sm" 
                     ng-model="product.name"&gt;
                   &lt;/div&gt;
  
                   &lt;div class="col-sm-1"&gt;
                      &lt;label&gt;&amp;nbsp;&lt;/label&gt;
                      &lt;button type="button" ng-hide="$first" ng-click="removeProduct()"&gt;-&lt;/button&gt;
                   &lt;/div&gt;
              &lt;/div&gt;
  
              &lt;div class="col-sm-1"&gt;
                  &lt;button type="button" ng-click="addNewProduct()"&gt;+&lt;/button&gt;
              &lt;/div&gt; 
      &lt;/div&gt;
  </code></pre>
  
  <p><strong>json categories</strong></p>
  
  <pre><code>[{"id":1,"name":"Furniture &amp; Fixture"},
  {"id":2,"name":"Miscellaneous Property"},
  {"id":3,"name":"Office Equipment"},
  {"id":4,"name":"Renovation"},
  {"id":5,"name":"Vehicle"}]
  </code></pre>
  
  <p>Here I want to add dynamic form fields(products) for each category</p>
  
  <p>my js is like this</p>
  
  <pre><code>$scope.addNewProduct = function(){
  
          $scope.categories.push({});
      }
  
  $scope.removeProduct= function(index){
          $scope.categories.splice(index,1);
      }
  </code></pre>
  
  <p>i know its won't work i need to push data to each category.please help </p>