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
QueryList<> interface is not iterable in TypeScript #7022
Comments
Adding |
In 2.0.0 QueryList still isn't an Iterable. Here is a demo: http://plnkr.co/edit/oeTcVe0jrtDjalN3nJdz?p=preview Moreover, the docs are confunsing because it says "Implements an iterable interface, therefore it can be used in both ES6 javascript for (var i of items) loops as well as in Angular templates with *ngFor="let i of myList". https://angular.io/docs/js/latest/api/core/index/QueryList-class.html |
|
@juanmaflyer it actually seems like a bug in TS. Investigating. |
@juanmaflyer TS assumes the object is either a string or an array when using |
@vicb: did you file a bug with typescript? I don't see it. |
Is there anything blocking this now that TypeScript supports the |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The
d.ts
generated does not contain theSymbol.iterator
member (and does not implement the Iterable interface). That would be okay if we could usetoArray()
but the Dart implementation is missing that declaration.The text was updated successfully, but these errors were encountered: