title: Automatically push ng-model data to array from view
body: <p>I'm populating my view as follow :</p>
  
  <pre><code>  &lt;tbody ng-repeat="user in users"&gt;
      &lt;tr&gt;
        &lt;td class="numeric"&gt;{{user.name}}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  </code></pre>
  
  <p>I'm trying to access the data from <code>user.name</code> inside my controller so that I end up with an array of without any action from the user:</p>
  
  <p><code>$scope.array = [user.name1,user.name2,user.name3,...]</code></p>
  
  <p>I've been trying to do something like this but it's not working:</p>
  
  <pre><code>  &lt;tbody ng-repeat="user in users"&gt;
      &lt;tr&gt;
        &lt;td class="numeric" ng-model={{array[user.index] = user.name}}&gt;{{user.name}}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  </code></pre>
  
  <p>I need to get the data this way because i'm using data from <code>minimongo</code> on the client and can't access it before the page is loaded.</p>
  
  <p>edit controller :</p>
  
  <pre><code>angular.module('App').controller('Users', function ($scope,$stateParams) {
    $scope.helpers({
      Users: () =&gt; {
        return Users.find({_id:$stateParams.ID.toString()});
      }
    });
  });
  </code></pre>