Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add objects support #108

Open
ViieeS opened this issue Feb 28, 2018 · 3 comments
Open

Add objects support #108

ViieeS opened this issue Feb 28, 2018 · 3 comments

Comments

@ViieeS
Copy link

ViieeS commented Feb 28, 2018

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
Copy link
Author

ViieeS commented Feb 28, 2018

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

@mattiash
Copy link
Owner

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.

@ViieeS
Copy link
Author

ViieeS commented May 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants