title: ngModel not updating from directive when directive is used in a ng-Repeat
body: <p>I got a html mockup like this:</p>
  
  <pre><code> &lt;tbody&gt;
                          &lt;tr ng-repeat="row in objectData.Tables[1].Dataset"&gt;
                              &lt;td ng-repeat="col in objectData.Tables[1].Columns  | filter:isColumnVisible | filter:skipColumnHiden" ng-click="items.SetSelected(objectData.Tables[1],row.$$hashKey)"
                                  ng-class="{'dd-selected': objectData.Tables[1].$ddSelected===row.$$hashKey, 'dd-vh-2':col.Length&lt;=25 , 'dd-vh-5':col.Length&gt;25 &amp;&amp; col.Length&lt;=50, 'dd-vh-10':col.Length&gt;50 &amp;&amp; col.Length&lt;=100, 'dd-vh-15':col.Length&gt;100 &amp;&amp; col.Length&lt;=150, 'dd-vh-20':col.Length&gt;150 &amp;&amp; col.Length&lt;=250}"&gt;
                                  &lt;div ng-switch="col.Type" ng-hide="objectData.Tables[1].$ddSelected===row.$$hashKey || ($index==0 &amp;&amp; row.showRowButtons == true)"&gt;
                                      &lt;span ng-switch-when="Integer" class="dd-cell"&gt;{{row[col.Code] | number}}&lt;/span&gt;
                                      &lt;span ng-switch-when="Date" class="dd-cell"&gt;{{row[col.Code] | date}}&lt;/span&gt;
                                      &lt;span ng-switch-when="DateTime" class="dd-cell"&gt;{{row[col.Code] | date}}&lt;/span&gt;
                                      &lt;span ng-switch-when="Decimal" class="dd-cell"&gt;{{row[col.Code] | number}}&lt;/span&gt;
                                      &lt;span ng-switch-when="Currency" class="dd-cell"&gt;{{row[col.Code] | currency}}&lt;/span&gt;
                                      &lt;span ng-switch-default class="dd-cell"&gt;{{row[col.Code]}}&lt;/span&gt;
                                  &lt;/div&gt;
                                  &lt;div class="row" ng-show="objectData.Tables[1].$ddSelected===row.$$hashKey" ng-switch="col.Type" style="clear:both" dd-stop-click&gt;
                                      &lt;input ng-switch-when="Integer" class="form-control input-sm" type="number" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                      &lt;input ng-switch-when="Decimal" class="form-control input-sm" type="number" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                      &lt;input ng-switch-when="Currency" class="form-control input-sm" type="number" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                      &lt;input ng-switch-when="Date" class="form-control input-sm" type="date" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                      &lt;input ng-switch-when="DateTime" class="form-control input-sm" type="datetime" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                      &lt;input ng-switch-when="Boolean" class="form-control input-sm" type="checkbox" ng-model="row[col.Code]" /&gt;
                                      &lt;dd-combo-grid ng-switch-when="Relation" ng-model="row[col.Code]" dd-object="{{col.Class}}" dd-selected="ddSelected(objectId)" dd-template="/Template/Modal/Table"&gt;&lt;/dd-combo-grid&gt;
                                      &lt;input ng-switch-default class="form-control input-sm" type="text" ng-model="row[col.Code]" ng-required="col.Required" /&gt;
                                  &lt;/div&gt;
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      &lt;/tbody&gt;
  </code></pre>
  
  <p>The directive making problems is the <code>dd-combo-grid</code> witch looks like this:</p>
  
  <pre><code>var ComboGridDirecitve = function () {
      return {
          restrict: 'E',
          scope: {
              ddObject: '@',
              ddId: '=ngModel',
              ddName: '=',
              ddSelected: '&amp;',
              ddParent:'=',
              ddTemplate: '@',
              globals: '=globals',
              ddReplace: '@'
          },
          require: 'ngModel',
          templateUrl: 'Template/ComboGrid',
          controller: 'ModalObjectController',
          link: function (scope, element, attrs) {
              scope.ddModal = false;
              scope.isChanged = false;
              scope.ddModalTemplate = '';
          }
      }
  }
  </code></pre>
  
  <p>The Directive defines that the <code>ddId</code> has in <code>=</code> binding to <code>ngModel</code></p>
  
  <p>The problem is that when <code>ddId</code> updates that is not propagated to the <code>ngModel</code> of the directive for some reason</p>
  
  <p>Controler code:</p>
  
  <pre><code>$scope.ddId = r['code'];
  console.log('selected Id:', $scope.ddId);
  </code></pre>
  
  <p>The log returns the correct value.</p>
  
  <p>The same directive works if it is not used in a ngRepeat for some reason</p>
  
  <p>Any ideas?</p>