angular-tablesort icon indicating copy to clipboard operation
angular-tablesort copied to clipboard

Add objects support

Open ViieeS opened this issue 6 years ago • 3 comments

Needs to add objects support in ts-repeat

Example

$scope.data = {
  "123": { id: 123, name: "dave", age: 23 },
  "456": { id: 456, name: "chris", age: 23 },
  "789": { id: 789, name: "bob", age: 23 },
  "101": { id: 101, name: "tom", age: 23 },
  "102": { id: 102, name: "tim", age: 23 }
}

ViieeS avatar Feb 28 '18 10:02 ViieeS

@mattiash It's pretty simple. I don't know why it wasn't done before :relieved:

ViieeS avatar Feb 28 '18 10:02 ViieeS

I don't think it is a good idea to treat an object as a list and iterate over its values. I think the application should transform it into a list before trying to display it in a table.

mattiash avatar May 13 '18 15:05 mattiash

@mattiash AngularJS natively supports object iteration via ng-repeat doc. Also I have no problem with this over 2 years of using my fork.

ViieeS avatar May 17 '18 11:05 ViieeS