This is my code snippet 

      <tbody ng-repeat="dtataOne in dataOnes()">
          <tr>
              <td>My Data</td>
              <td class="task-container ui-sortable" colspan="6" 
ng-model="dtataOne.MyModel" ui-sortable="sortableOptions" 
stafflastname="{{'Pup-Only'}}" data2="{{'999999'}}" task="{{100}}" 
data3="{{'No'}}">
                <a href="javascript:void(0);"  ng-repeat="tg in 
Getdata(data3)" ng-click="ShowData(tg)">{{tg.count}}</a>
              </td> 
         </tr>
     </tbody> 


Controller : 


  

      $scope.Getdata = function(data3) {
            var datas = [];       
                data3.forEach(function (staff) {
                    if (true) {
                        staff.tgs.forEach(function (tg) {
                            datas.push(tg);
                        });
                    } 
            });
            
            $scope.data3s().forEach(function (datum) {
                if (datum.id === data3.id) {
                    datum.MyModel = datas;
                }
            });
            return datas;
        };


In the above code snippet in the line " datum.MyModel = datas;" I am 
getting an error message like the one mentioned below 

Uncaught Error: [$rootScope:infdig] 
http://errors.angularjs.org/1.2.13/$rootScope/infdig?p0=10&p1=%5B%
 
Any help will be life saving .... 

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to