Title: QueryList is not a Iterable · Issue #5437 · angular/angular · GitHub
Open Graph Title: QueryList is not a Iterable · Issue #5437 · angular/angular
X Title: QueryList is not a Iterable · Issue #5437 · angular/angular
Description: Trying to use a QueryList in a for ... of loop in typescript yields the following compilation error: Type 'QueryList
Open Graph Description: Trying to use a QueryList in a for ... of loop in typescript yields the following compilation error: Type 'QueryList
X Description: Trying to use a QueryList in a for ... of loop in typescript yields the following compilation error: Type 'QueryList<MyHero>' is not an array type or a string type. Usage example: @Vi...
Opengraph URL: https://github.com/angular/angular/issues/5437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QueryList is not a Iterable","articleBody":"Trying to use a `QueryList` in a `for ... of` loop in typescript yields the following compilation error:\n\n```\nType 'QueryList\u003cMyHero>' is not an array type or a string type.\n```\n\nUsage example:\n\n```\n@ViewChildren(MyHero) myHeroes: QueryList\u003cMyHero>;\nrecallAllHeroes(){\n for (let myHero of this.myHeroes) {\n // ...\n }\n}\n```\n\nAdding @vsavkin for reference.\n","author":{"url":"https://github.com/filipesilva","@type":"Person","name":"filipesilva"},"datePublished":"2015-11-23T17:49:54Z","url":"https://github.com/angular/angular/issues/5437"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c8f3df78-280a-041a-fa4f-b3d0b6ff46b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2D2:1201C:2204683:2D282CA:6B01830E |
| html-safe-nonce | 71018874fcffc1606b8a95ffa8d1facfeb4aa7b55883013085504eaa5ce24a8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkQyOjEyMDFDOjIyMDQ2ODM6MkQyODJDQTo2QjAxODMwRSIsInZpc2l0b3JfaWQiOiIzODg0NTkwOTQ2NTUzMjY2OTU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4d9377d7d1a2fdfcf719476b2270efe38c3f4c2e7435ce7ea94f88c92f78a187 |
| hovercard-subject-tag | issue:118435044 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/5437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ecbcc2023cc04102be49cf50781ee89f1643811d9286a677f102254b0d2f5ae8/angular/angular/issues/5437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ecbcc2023cc04102be49cf50781ee89f1643811d9286a677f102254b0d2f5ae8/angular/angular/issues/5437 |
| og:image:alt | Trying to use a QueryList in a for ... of loop in typescript yields the following compilation error: Type 'QueryList |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | filipesilva |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width