title: update all ng-repeat input values
body: <p>It has been more than two weeks that I have been trying to solve my problem, but in vain and I really need your help please...
  In the code, there's ng-repeat, and I have to update "frais" of all values displayed by ng-repeat. how can I do that please, I m working with angularJS and PHP</p>
  
  <p>file.html</p>
  
  <pre><code>&lt;ion-content class="padding" ng-controller="FactureAdminCtrl"&gt;
  
  &lt;ion-list ng-repeat = "selectedName in selected"&gt;
        &lt;div class="item item-divider center-text" 
             name="codeE" ng-model="selectedName.CodeEnvoiColis"&gt; 
          {{selectedName.CodeEnvoiColis}}
        &lt;/div&gt;  
  
        &lt;label class="item item-input"&gt;
        &lt;input width="20%" type="text" 
            placeholder="Frais" ng-model="selectedName.FraisFact" 
            style="color:#BA1B1B;"&gt;
        &lt;/div&gt; 
        &lt;/label&gt;
  
  &lt;/ion-list&gt;  
  
      &lt;a class="button button-info" href="#/factureAdmin" `
            ng-click=updateFact(selectedName)&gt; Submit &lt;/a&gt;
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>$scope.updateFact = function(selectedName){ 
  
     $http.post(  
          "http://localhost/deb/updatFact.php",  
          { 
  
          'FraisFact':$scope.selectedName.FraisFact,
          'CodeEnvoiColis':$scope.selectedName.CodeEnvoiColis,
        }
     ).success(function(data){  
          alert(data);                                
     });  
  
  } 
  </code></pre>
  
  <p>updateFact.php</p>
  
  <pre><code> &lt;?php   
  
        $CodeEnvoiColis = mysqli_real_escape_string($connect, $data-&gt;CodeEnvoiColis);  
        $FraisFact = mysqli_real_escape_string($connect, $data-&gt;FraisFact);  
  
        $query = "UPDATE colis SET FraisFact='$FraisFact' WHERE CodeEnvoiColis='$CodeEnvoiColis'" ;
  
   ?&gt;
  </code></pre>
  
  <p>How can I do please!</p>