title: Handle Angular ng-model for multiple forms in same page
body: <p>I'm new to AngularJS and came across to a problem or how to do. I'm creating a dashboard for soccer scores which every week need to update. So I load 9 games por page, information retrieved from the Database.</p>
  
  <p>Here's my controller: </p>
  
  <pre><code>DashQ.controller( 'homeController', [ '$scope', '$http', function($scope, $http){
  
          $scope.datos = {};
  
          $http.get("http://localhost:8000/jornadas")
               .success( function( result ) {
                         $scope.jornadas = result;
                      })
               .error( function( data, status ) {
  
                      });
  
          $scope.getPartidosJornada = function(id){
  
              $http.get("http://localhost:8000/jornada/" + id)
                   .success( function( result ) {
                              $scope.partidos = result;                
                          })
                   .error( function( data, status ) {
  
                          });
  
          }
  
          $scope.gooolL = function(){
  
              $http({
                      method  : 'POST',
                      url     : 'http://localhost:8000/goles/anotar',
                      data    : $.param($scope.datos),
                      headers : { 'Content-Type': 'application/x-www-form-urlencoded' }
                  }).
                  success(function(response){
                      $scope.minutoGol = ''
                  }).
                  error(function(response){
                      alert('Datos incompletos');
                  });
          }
  
      }] );
  </code></pre>
  
  <p>And here's my view: </p>
  
  <pre><code>&lt;div class="col-md-4" ng-repeat="partido in partidos"&gt;
  
                &lt;div class="row"&gt;
                 &lt;div class="col-md-offset-2 col-md-4 text-center"&gt;
                     &lt;div class="localBox"&gt;
                          &lt;label class="circulo-res jornadaLabel"&gt;
                              &lt;span class="circulo-ins {{partido.equipo_local.logotipo}}"&gt;&lt;/span&gt;
                          &lt;/label&gt;
                          &lt;form&gt;
                              &lt;input type="hidden" value="{{ partido.id }}" ng-model="datos.partidoId"&gt;
                              &lt;input type="hidden" value="{{ partido.equipo_local_id }}" ng-model="datos.equipoId"&gt;
                              &lt;input type="text" class="form-control" ng-model="datos.minutoGolLocal" /&gt;
                          &lt;/form&gt;
                          &lt;button class="btn btn-primary" ng-click="gooolL()"&gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt;&lt;/button&gt;
                     &lt;/div&gt;
                 &lt;/div&gt;
  
                 &lt;div class="col-md-4 text-center"&gt;
                     &lt;div class="visitaBox"&gt;
                          &lt;label class="circulo-res jornadaLabel"&gt;
                              &lt;span class="circulo-ins {{partido.equipo_visita.logotipo}}"&gt;&lt;/span&gt;
                          &lt;/label&gt;
                          &lt;form&gt;
                              &lt;input type="hidden" value="{{ partido.id }}" ng-model="datos.partidoId"&gt;
                              &lt;input type="hidden" value="{{ partido.equipo_visita_id }}" ng-model="datos.equipoId"&gt;
                              &lt;input type="text" class="form-control" ng-model="datos.minutoGolVisita" /&gt;
                          &lt;/form&gt;
                          &lt;button class="btn btn-primary" ng-click="gooolV()"&gt;&lt;i class="fa fa-plus"&gt;&lt;/i&gt;&lt;/button&gt;
                     &lt;/div&gt;
                 &lt;/div&gt;
                &lt;/div&gt;
  
              &lt;/div&gt;
  </code></pre>
  
  <p>The thing is, what's the best way to handle each game... because the ng-model repeats itself 9 times, so the input value repeats in every other, for home and for away teams respectively, also when the function is executed, the hidden input values not passing to the controller and the success function doesn't clear the input.</p>
  
  <p>Hope somebody helps, thanks...</p>