Title: Add a mechanism to reload a component · Issue #51302 · angular/angular · GitHub
Open Graph Title: Add a mechanism to reload a component · Issue #51302 · angular/angular
X Title: Add a mechanism to reload a component · Issue #51302 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? core Description App.component.html:
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? core Description App.component.html:
X Description: Which @angular/* package(s) are relevant/related to the feature request? core Description App.component.html: <div><child-component></child-component></div> Add a mechanism ...
Opengraph URL: https://github.com/angular/angular/issues/51302
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add a mechanism to reload a component","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\r\n\r\ncore\r\n\r\n### Description\r\n\r\nApp.component.html:\r\n`\u003cdiv>\u003cchild-component>\u003c/child-component>\u003c/div>`\r\n\r\nAdd a mechanism to reload child component in app component so that the child component can be recreated and go through the initial lifecycle.\r\n\r\n\r\n### Proposed solution\r\n\r\n1. By adding ViewChild to refer to the child component and call ParentComponent.reloadView(childComponent).\r\n2. By adding a key to the child component. If the key is changed, then the component will be auto-reload like the one in React. \r\n","author":{"url":"https://github.com/darius-iko","@type":"Person","name":"darius-iko"},"datePublished":"2023-08-08T23:55:29Z","url":"https://github.com/angular/angular/issues/51302"}
| 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:0c46fd74-93a5-98db-d4c6-7fee0d3b6197 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A210:1F5C:E679F:135EA7:6B01E7C0 |
| html-safe-nonce | dfdbd2c7e687092bb269dea54d746f49f3d8012ca5071fa610a30e90acd87746 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjEwOjFGNUM6RTY3OUY6MTM1RUE3OjZCMDFFN0MwIiwidmlzaXRvcl9pZCI6IjQ3NzMzODM5NjI1OTQ3NjQ3MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 19fdf3a014104cc789918d677409072cc2b2b0c4450ff99e648d2bbfc0db914f |
| hovercard-subject-tag | issue:1842250114 |
| 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/51302/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5ed819a7590f084bec9436e67e51f53d995c9289ff4a2c6bb979cdbbcaa91e3/angular/angular/issues/51302 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5ed819a7590f084bec9436e67e51f53d995c9289ff4a2c6bb979cdbbcaa91e3/angular/angular/issues/51302 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? core Description App.component.html: |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darius-iko |
| 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