-
Notifications
You must be signed in to change notification settings - Fork 248
Using ng-repeat track by fails with No "getter for $index" when using transformer #1307
Comments
You're right, this is related to #1023. We need to evaluate the expressions in both case meaning that the transformers should extract the expressions from the source. Fixing this issue might involve using the parser in the expression extractor as a regexp might not be enough (related to #1050). As a workaround, you can add the expression in the |
@vicb |
@tkrotoff youe are right, you should use |
@rkirov Has this been fixed? |
AFAIKT, you just need to use exportExpressions. |
Right, that's a workaround for the issue as @vicb mentions. But IMHO it doesn't really make sense that every user should have to do this for every project to use something that is built into the framework and should work out of the box. |
Hi Lasse, |
Guys, please reopen this. From the point of view of a library user it's a bug by any reasonable standard. |
Sorry, for not being clear. Closing the issue is not saying this is not a bug, but rather indicating that we are not going to work on it in the near future. PRs are always welcome. |
You have GitHub labels for that... If you acknowledge the bug exists and is valid then the GitHub issue should not be closed. Check other popular GitHub projects and you will see that this is how people work (examples, sorted by date: 1, 2, 3... see how old these issues are and the number of comments).
If you close the issue, you can be sure that no PR will land => it's like the issue does not even exist. |
OK -- reopening, but tagged as post-v1.0 Milestone. Thanks for the discussion. |
@tkrotoff Fair enough, issue is reopened to improve visibility for potential contributors. Cross-referencing here the Google groups discussion - https://groups.google.com/forum/#!topic/angular-dart/cbXcHwBcuoM concerning the bigger picture with Angular.Dart v1.0 and Angular v2.0. |
Using track by $index fails with a "no getter" exception when using the angular transformer.
Issue 1023 seems related.
index.html
main.dart
pubspec.yaml
The text was updated successfully, but these errors were encountered: