AngularDeveloper AngularDeveloper - 1 year ago 75
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


Answer Source

Here you can find the solution for your question

Solved Plunker

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


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download