Yeah so I've been trying to get this to work for days now with Angular... 
and I just can't. 

<tr ng-repeat-start="att in calls"  >
   <td ng-click="getAll(att.action_id)"><i class="fa fa-plus-square"></i></td>
   <td>{{att.cust_no}}</td>
   <td>{{att.emp_name}}</td>
   <td>{{att.attemptdt}}</td>
   <td>{{att.note}}</td>
   <td>{att.callstatus}}</td>
</tr>
<tr ng-repeat-end ng-repeat="x in moreAttempts">
   <td colspan="5"></td>
   <td colspan="2">{{x.moreAttempts}}</td>
</tr>


So I have a repeat nested with another.


$scope.search = function() {
   var from = "&from="+$scope.from;
   var to = "&to="+$scope.to;
   var emps = "&emps="+$scope.emps;
         $http.get("attemptsJSON.php?q="+$scope.svalue)
            .success(function(response) {
                           $scope.calls = response;
            
            });
         };
   $scope.getAll = function(a) {
      $http.get("allAttemptsJSON.php?a="+a)
         .success(function(response) {
            $scope.check = moreAttempts;

         });
   };

I call the initial data in the search function and then I want to return data 
UNIQUE to the first repeat and nest it right below. The problem I run into is 
that when I return the response to more Attempts it displays it for every 
instance of the repeat inside the first repeat, and I only want it right below 
that one. Seriously about to give up on Angular considering I could do this 
easily with Jquery. I'm assuming I need to use a directive but they are 
confusing and I cannot find any help specific to my situation. Please help.

-- 
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