René's URL Explorer Experiment


Title: createComponent function example not work on 16.2.1 · Issue #51492 · angular/angular · GitHub

Open Graph Title: createComponent function example not work on 16.2.1 · Issue #51492 · angular/angular

X Title: createComponent function example not work on 16.2.1 · Issue #51492 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description The document wrong: https://angular.io/api/core/createComponent const componentRef = [createComponent](https://angular.io/api/core/createCo...

Open Graph Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description The document wrong: https://angular.io/api/core/createComponent const componentRef = [createCompone...

X Description: Which @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description The document wrong: https://angular.io/api/core/createComponent const componentRef = [createCompone...

Opengraph URL: https://github.com/angular/angular/issues/51492

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"createComponent function example not work on 16.2.1","articleBody":"### Which @angular/* package(s) are the source of the bug?\r\n\r\ncore\r\n\r\n### Is this a regression?\r\n\r\nYes\r\n\r\n### Description\r\n\r\nThe document wrong: https://angular.io/api/core/createComponent\r\n``` \r\nconst componentRef = [createComponent](https://angular.io/api/core/createComponent)(HelloComponent, {host, environmentInjector});\r\n\r\nhost was change to hostElement, should become this\r\nconst componentRef = [createComponent](https://angular.io/api/core/createComponent)(HelloComponent, {hostElement, environmentInjector});\r\n\r\n```\r\n\r\nBtw it just not work.\r\n\r\n### Please provide a link to a minimal reproduction of the bug\r\n\r\n[this one work]\r\nhttps://stackblitz.com/edit/angular-anxyrb?file=src%2Fmain.ts,src%2Findex.html \r\n[not work version]\r\nhttps://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.component.ts:63,6\r\n\r\n### Please provide the exception or error you saw\r\n\r\n```true\r\nNG0912: Component ID generation collision detected. Components 'HelloComponent' and 'HelloComponent' with selector 'hello-component' generated the same component ID. To fix this, you can change the selector of one of those components or add an extra host attribute to force a different ID. Find more at https://angular.io/errors/NG0912\r\n```\r\n\r\n\r\n### Please provide the environment you discovered this bug in (run `ng version`)\r\n\r\n_No response_\r\n\r\n### Anything else?\r\n\r\nng version result:\r\n\r\n![image](https://github.com/angular/angular/assets/16970990/6ab0f856-56bc-4b78-8c01-cf4aa9ebf33a)\r\n","author":{"url":"https://github.com/hiepxanh","@type":"Person","name":"hiepxanh"},"datePublished":"2023-08-24T10:08:04Z","url":"https://github.com/angular/angular/issues/51492"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:46ac365a-5c3d-4bcd-ba72-e8da81f5f31a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E66:3DD488:166116B:1C61696:6B0137B6
html-safe-nonceef347b936d728fa3df2a8e469468dabc9ab60da0b8dfc75656137506be71b64b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTY2OjNERDQ4ODoxNjYxMTZCOjFDNjE2OTY6NkIwMTM3QjYiLCJ2aXNpdG9yX2lkIjoiODM0MjA4NjQzNTQ0MDcwMDcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9815ee67780ac6a726786f4de62e0091ed4c3c7398c084390bd40bb4f4034200
hovercard-subject-tagissue:1864830288
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/51492/issue_layout
twitter:imagehttps://opengraph.githubassets.com/119667925238099e98a7128d950857f71c347a16f4469ac78caad15ae3cc4ecd/angular/angular/issues/51492
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/119667925238099e98a7128d950857f71c347a16f4469ac78caad15ae3cc4ecd/angular/angular/issues/51492
og:image:altWhich @angular/* package(s) are the source of the bug? core Is this a regression? Yes Description The document wrong: https://angular.io/api/core/createComponent const componentRef = [createCompone...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehiepxanh
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/51492#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F51492
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F51492
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/51492
Reloadhttps://github.com/angular/angular/issues/51492
Reloadhttps://github.com/angular/angular/issues/51492
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/51492
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/51492
createComponent function example not work on 16.2.1https://github.com/angular/angular/issues/51492#top
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issue-1864830288
https://angular.io/api/core/createComponenthttps://angular.io/api/core/createComponent
https://stackblitz.com/edit/angular-anxyrb?file=src%2Fmain.ts,src%2Findex.htmlhttps://stackblitz.com/edit/angular-anxyrb?file=src%2Fmain.ts,src%2Findex.html
https://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.component.ts:63,6https://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.component.ts:63,6
https://private-user-images.githubusercontent.com/16970990/262939424-6ab0f856-56bc-4b78-8c01-cf4aa9ebf33a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDIyMTAsIm5iZiI6MTc5NTI0MTkxMCwicGF0aCI6Ii8xNjk3MDk5MC8yNjI5Mzk0MjQtNmFiMGY4NTYtNTZiYy00Yjc4LThjMDEtY2Y0YWE5ZWJmMzNhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MTgzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwZGFiOTdkZmMxZWY3YzIwODQzMWM3NTdhNzMxZjk3NTAwMzFhNTMxMTY4MWQ4MTQxZjA0OGYxYTE0ODI2M2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.MVFJ4WIgVdYtnNBa7ziSHUjQKzRX_SB5mLHyhMr5okQ
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#event-10179473092
JeanMechehttps://github.com/JeanMeche
area: docshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20docs%22
on Aug 24, 2023https://github.com/angular/angular/issues/51492#event-10180425855
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Aug 24, 2023https://github.com/angular/angular/issues/51492#event-10180427143
JeanMechehttps://github.com/JeanMeche
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
on Aug 24, 2023https://github.com/angular/angular/issues/51492#event-10180450483
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691553467
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691650282
@JeanMechehttps://github.com/JeanMeche
https://private-user-images.githubusercontent.com/16970990/262982515-146825fd-b38d-4a46-830d-ff407930b2f9.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDIyMTEsIm5iZiI6MTc5NTI0MTkxMSwicGF0aCI6Ii8xNjk3MDk5MC8yNjI5ODI1MTUtMTQ2ODI1ZmQtYjM4ZC00YTQ2LTgzMGQtZmY0MDc5MzBiMmY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MTgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2ODE1NjgyNjczYWRmMzYwMjU2NzcwZmMyZDAxM2ZlM2U3YzBkNzM4NzRhODc0NDE0NWIwYmFlOWRmZDM5NDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.9iOoLP1KxdQzZRr8SEaYv6JowMCrcL4LjMw66SgCQcc
https://private-user-images.githubusercontent.com/16970990/262983143-7a564143-d2b4-4fa6-b628-41f3bc76f056.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDIyMTEsIm5iZiI6MTc5NTI0MTkxMSwicGF0aCI6Ii8xNjk3MDk5MC8yNjI5ODMxNDMtN2E1NjQxNDMtZDJiNC00ZmE2LWI2MjgtNDFmM2JjNzZmMDU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MTgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZiNmM1MWQ0ZDk2Yzk1YzVkZTQ1MWJiNjU2NjM5YTAyMGVmMzE4MTcwYzRiYzc1MDAyMzUwY2ExNDcwYWY5ZmUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.7Kmaks93SuwnXDwM8YLMPW1_yPQSvvwyDP21Ef2j4YM
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691653971
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691668742
@JeanMechehttps://github.com/JeanMeche
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691678097
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691704274
https://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.component.ts:63,6https://codesandbox.io/p/sandbox/relaxed-feather-27fv8y?file=/src/app/app.component.ts:63,6
@JeanMechehttps://github.com/JeanMeche
#51491https://github.com/angular/angular/issues/51491
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 24, 2023https://github.com/angular/angular/issues/51492#issuecomment-1691706419
https://private-user-images.githubusercontent.com/16970990/262991908-b3f902d1-0bd3-446c-8969-b82bd4f7617f.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyNDIyMTEsIm5iZiI6MTc5NTI0MTkxMSwicGF0aCI6Ii8xNjk3MDk5MC8yNjI5OTE5MDgtYjNmOTAyZDEtMGJkMy00NDZjLTg5NjktYjgyYmQ0Zjc2MTdmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIxVDA2MTgzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjN2VjOGIwZmVjMzNkMmViZTk2MGU2YzdhZjVmNmY2MjcyOGViZWVjM2RiMzc2MzZjZTFmNTEyZjBlNmFiYjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.h-RA0uqDbsiplrTUiyqSecFwCJSJXVot9aV0R_KKWXk
AndrewKushnirhttps://github.com/AndrewKushnir
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
on Aug 26, 2023https://github.com/angular/angular/issues/51492#event-10198328999
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 27, 2023https://github.com/angular/angular/issues/51492#issuecomment-1694546921
@hiepxanhhttps://github.com/hiepxanh
#51491 (comment)https://github.com/angular/angular/issues/51491#issuecomment-1694127351
https://github.com/hiepxanh
hiepxanhhttps://github.com/hiepxanh
on Aug 28, 2023https://github.com/angular/angular/issues/51492#issuecomment-1695833174
@AndrewKushnirhttps://github.com/AndrewKushnir
#51535https://github.com/angular/angular/issues/51535
hiepxanhhttps://github.com/hiepxanh
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Sep 2, 2023https://github.com/angular/angular/issues/51492#event-10264982514
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 3, 2023https://github.com/angular/angular/issues/51492#issuecomment-1743948543
automatic conversation locking policyhttps://github.com/angular/angular/blob/8f24bc9443b3872fe095d9f7f77b308a361a13b4/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 3, 2023https://github.com/angular/angular/issues/51492#event-10531739078
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/51492
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/51492
good first issueLabel noting a good first issue to be worked on by a community memberhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
state: has PRhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20has%20PR%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.