Title: New `@async` block · Issue #53601 · angular/angular · GitHub
Open Graph Title: New `@async` block · Issue #53601 · angular/angular
X Title: New `@async` block · Issue #53601 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Because nobody responded to the second comment on my last feature request Im opening a new one to get an opinion about it. I also read the blog pos...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Because nobody responded to the second comment on my last feature request Im opening a new one to get an op...
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description Because nobody responded to the second comment on my last feature request Im opening a new one to get an op...
Opengraph URL: https://github.com/angular/angular/issues/53601
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New `@async` block","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\ncore\n\n### Description\n\nBecause nobody responded to the second comment on my last feature request Im opening a new one to get an opinion about it.\r\n\r\nI also read the [blog post](https://blog.angular.io/use-angulars-new-deferrable-views-now-20ca9f64f1e5) about deferrable views, especially the last part \"[Looking to the future](https://blog.angular.io/use-angulars-new-deferrable-views-now-20ca9f64f1e5#9bef)\", which mentions that the community is interested in combining defer with data fetching.\r\nIm definitely interested in this, so heres my idea:\r\n\r\nA new `@async` block that essentially works like the async pipe, but with additional support for the `@loading` and `@error` blocks.\r\n\r\nAnd to be clear, this wouldnt lazy load used components, but would simply load them normally. For that purpose Ive been thinking about a new trigger for the `@defer` block: `on fetch`, but thats probably a topic for another feature request.\n\n### Proposed solution\n\n```js\r\n@async (entries; as results) {\r\n @for (entry of results; track entry.id) {\r\n \u003cp>{{ entry.title }}\u003c/p>\r\n } @empty {\r\n \u003cp>No entries\u003c/p>\r\n }\r\n} @loading (minimum 200ms) {\r\n \u003cp>Loading\u003c/p>\r\n} @error {\r\n \u003cp>Something went wrong\u003c/p>\r\n}\r\n```\n\n### Alternatives considered\n\nhttps://github.com/angular/angular/issues/53185","author":{"url":"https://github.com/xXNickznXx","@type":"Person","name":"xXNickznXx"},"datePublished":"2023-12-16T13:01:14Z","url":"https://github.com/angular/angular/issues/53601"}
| 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:7a6bbee3-d440-6145-629e-719c388737ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C4E6:21AC3F:39591AA:4894C67:6B01D8E8 |
| html-safe-nonce | f598af7eebfe468078dc5a611470797f2959787eb0b225524f8639899d4f14de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNEU2OjIxQUMzRjozOTU5MUFBOjQ4OTRDNjc6NkIwMUQ4RTgiLCJ2aXNpdG9yX2lkIjoiNjc3MzQ3OTQyMTIxNjE1MTc4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 850e0a6b6d9e49c909ba08af25b36282b5cd5d381b75a89afc18b30b9b7126bf |
| hovercard-subject-tag | issue:2044741881 |
| 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/53601/issue_layout |
| twitter:image | https://opengraph.githubassets.com/adbec042a4a9ba76d991aceea109c84e4a3abc8b5239edde20743dafdfb5da03/angular/angular/issues/53601 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/adbec042a4a9ba76d991aceea109c84e4a3abc8b5239edde20743dafdfb5da03/angular/angular/issues/53601 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description Because nobody responded to the second comment on my last feature request Im opening a new one to get an op... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xXNickznXx |
| 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