title: Could you help resolve this logic issue?
body: <p><a href="https://jsfiddle.net/jason5149/w4eL58gw/2/" rel="nofollow">example</a><code>DEMO</code></p>
  
  <p>You can see code above link.</p>
  
  <p>Actually, I want to according the button group's input to control all of input form which name is the same with button group name.</p>
  
  <p>For example, I put value into input form on the 'First' Button right side,</p>
  
  <p>and the same time, all of the input form which name 'First' should be change </p>
  
  <p>with just button group input one. </p>
  
  <p>Sorry for my poor English skill, hope you can understand it!! </p>
  
  <pre><code>&lt;div ng-app="app" ng-controller="AppCtrl"&gt;
  // list group
    &lt;div&gt;
      &lt;ul&gt;
        &lt;li ng-repeat="item in items"&gt;
          &lt;span&gt;{{item.name}}&lt;/span&gt;
          &lt;input type="text" ng-model="price"&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  
  
  // button group
    &lt;div&gt;
      &lt;ul class="list-btn"&gt;
        &lt;li ng-repeat="btn in btns"&gt;
          &lt;button&gt;{{btn}}&lt;/button&gt;
          &lt;input type="text" ng-model="price_all"&gt;    
        &lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;  
  &lt;/div&gt;
  
  
  angular.module('app', [])
  .controller('AppCtrl', ['$scope', function ($scope) {
      $scope.items = [
      {id: 1, name: 'First'},
      {id: 2, name: 'Second'},
      {id: 3, name: 'Third'},
      {id: 4, name: 'First'},
      {id: 5, name: 'Second'},
      {id: 6, name: 'Third'},
      {id: 7, name: 'First'},
      {id: 8, name: 'Second'},
      {id: 9, name: 'Third'},
    ]
  
    $scope.btns = ['First', 'Second', 'Third'];
  
  }])
  </code></pre>