Title: docs(core): correct forwardRef usage in standalone example by lceneo · Pull Request #72145 · angular/angular · GitHub
Open Graph Title: docs(core): correct forwardRef usage in standalone example by lceneo · Pull Request #72145 · angular/angular
X Title: docs(core): correct forwardRef usage in standalone example by lceneo · Pull Request #72145 · angular/angular
Description: PR Checklist The commit message follows our guidelines. Tests for the changes have been added (documentation-only change; no tests required). Docs have been added / updated. PR Type Documentation content changes What is the current behavior? The Circle standalone reference import example uses forwardRef on ChildComponent to reference ParentComponent. However, ParentComponent is declared before ChildComponent, so the reference to ParentComponent is already available when the ChildComponent decorator is evaluated. At the same time, ChildComponent is referenced in the ParentComponent decorator before its declaration, which requires forwardRef. Issue Number: N/A What is the new behavior? Move forwardRef to the ParentComponent imports to defer the reference to ChildComponent, which has not yet been declared. Use a direct reference to ParentComponent in the ChildComponent imports, since it has already been declared. This makes the example consistent with the declaration order of the components and correctly demonstrates the use of forwardRef in circular standalone component imports. Does this PR introduce a breaking change? Yes No Other information Same aplies to https://angular.dev/api/core/forwardRef
Open Graph Description: PR Checklist The commit message follows our guidelines. Tests for the changes have been added (documentation-only change; no tests required). Docs have been added / updated. PR Type Document...
X Description: PR Checklist The commit message follows our guidelines. Tests for the changes have been added (documentation-only change; no tests required). Docs have been added / updated. PR Type Document...
Opengraph URL: https://github.com/angular/angular/pull/72145
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e00c4221-3872-b1d3-6041-49582cc2b0d0 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 86AE:2D40DE:26A9F2F:3144FD3:6B01D237 |
| html-safe-nonce | 1408288f31860a77160acbf10ce1d543f100f5956d860c69e1489d1c0e278535 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkFFOjJENDBERToyNkE5RjJGOjMxNDRGRDM6NkIwMUQyMzciLCJ2aXNpdG9yX2lkIjoiMjczMDA3ODYwNzUzNDgzODMyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 52126f26fba48fd62faac0eee1006ccf91c5681e13b6d02a5e5dda328597b1cc |
| hovercard-subject-tag | pull_request:5416167223 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/angular/angular/pull/72145/files |
| twitter:image | https://avatars.githubusercontent.com/u/94864786?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/94864786?s=400&v=4 |
| og:image:alt | PR Checklist The commit message follows our guidelines. Tests for the changes have been added (documentation-only change; no tests required). Docs have been added / updated. PR Type Document... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 | true |
| 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 |
Links:
Viewport: width=device-width