title: Updating scope in ng-repeat
body: <p>According to several sources, using $parent to update a scope from within ng-repeat (because it has its own scope) is discouraged. I do the following to update the data model from within ng-repeat:</p>
  
  <pre><code>&lt;div ng-repeat="datarow in datasource"&gt;
     &lt;select ng-model="datasource[$index].property" ng-options="option.first_name for option in datarow.options"&gt;&lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I use <code>datasource[$index].property</code> to update the datasource array. This way I can see when a user has made choice in all the dropdowns and I can enable the button to submit a form.</p>
  
  <p>Is there a better way to do this? I'd rather not use $parent. </p>