AngularDeveloper AngularDeveloper - 7 months ago 38
AngularJS Question

Using two ng-repeats in one table and display it conditionally

I'm using two ng-repeats to display all the details in one table. The two lists are noway related to each other. I want to display first list(customers and their Ids) in left side and second list(sales and it's Ids) in right side of the table.

The output should be like this.

Customers Id Sales Id
cust 1.1 1 site 2.1 4
cust 1.2 2 site 2.2 5
cust 1.3 3
cust 1.4 7



Here you can find the solution for your question

Solved Plunker

 $scope.resList = $, index) {
return {
    cust: value,
    sal: $scope.sales[index]