René's URL Explorer Experiment


Title: Dynamically load template for a component · Issue #15275 · angular/angular · GitHub

Open Graph Title: Dynamically load template for a component · Issue #15275 · angular/angular

X Title: Dynamically load template for a component · Issue #15275 · angular/angular

Description: I'm submitting a [X] feature request I have a component which provides some generic business logic. Let's say: CRUD functionality Productmanagement (product catalogue) Cross department business management (separate layout for each depart...

Open Graph Description: I'm submitting a [X] feature request I have a component which provides some generic business logic. Let's say: CRUD functionality Productmanagement (product catalogue) Cross department business man...

X Description: I'm submitting a [X] feature request I have a component which provides some generic business logic. Let's say: CRUD functionality Productmanagement (product catalogue) Cross department busi...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Dynamically load template for a component","articleBody":"I'm submitting a \r\n[X] feature request\r\n\r\nI have a component which provides some generic business logic. Let's say:\r\n- CRUD functionality \r\n- Productmanagement (product catalogue)\r\n- Cross department business management  (separate layout for each department)\r\n- ...\r\n\r\nDepending on a condition I want to show a layout (template) which is specific for a type of product, related to the user department, etc.\r\nRight now I can't load a template on the fly for doing this. \r\nI have read through all the issues here and on stackoverflow for possible ways on doing this. \r\n\r\nThe most practicabel way is the ngTemplateLayout. But in real life if you have dozens of different layout types, it **blows up your template file and make unmaintenable.**\r\n\r\nIf you use the dynamiccomponentloader which is the most recommend way by the angular team, it adds an **huge overhead of code** for generating the component dynamically, even if the functionality for component and module creation is encapsulated.  In addition **it doesn't allow a real generic solution**, because in the ngModule which has also be created dynamically you have to provide all imports, exports, providers, ... to make the component work. So if you don't want to have a huge overhead in your generic component builder, you have to implement a generic componentbuilder for each \"type\" of your form types. Which is not practicable and increases the danger of recoding all after the next angular release\r\n\r\n**Expected behavior**\r\n**Provide a way of loading a template dynamically for a component**. As it is available in Angular 1\r\nPlease don't be dogmatic on this issue and consider supporting real world requirements in Angular 2\r\nThanks","author":{"url":"https://github.com/KarlXOL","@type":"Person","name":"KarlXOL"},"datePublished":"2017-03-18T10:16:26Z","url":"https://github.com/angular/angular/issues/15275"}

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:cf64cce0-4825-fc26-504d-c824957f008d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD06E:1D20B7:32086D:3EFAE9:6B010353
html-safe-nonce90c7e61b45e5e36040c2f54e9fb67d30c6c4d3c16c5dbec352a5950abfd8ee9d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDZFOjFEMjBCNzozMjA4NkQ6M0VGQUU5OjZCMDEwMzUzIiwidmlzaXRvcl9pZCI6IjIyMjg3NjA4MDc3NDU4NDgxNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac76482100e3460da18305ffb9f017377c2e56eab130b23467dd07eb44bf680f1b
hovercard-subject-tagissue:215182323
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/15275/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cb2037275db232422622e1c0e597a83107da3e35063620a783e2cf5a4a3f4c31/angular/angular/issues/15275
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cb2037275db232422622e1c0e597a83107da3e35063620a783e2cf5a4a3f4c31/angular/angular/issues/15275
og:image:altI'm submitting a [X] feature request I have a component which provides some generic business logic. Let's say: CRUD functionality Productmanagement (product catalogue) Cross department business man...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameKarlXOL
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/15275#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F15275
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%2F15275
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/15275
Reloadhttps://github.com/angular/angular/issues/15275
Reloadhttps://github.com/angular/angular/issues/15275
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)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/15275
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/15275
Dynamically load template for a componenthttps://github.com/angular/angular/issues/15275#top
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issue-215182323
Nexthttps://github.com/angular/angular/issues/15275?timeline_page=1
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287533440
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287533788
https://github.com/Toxicable
Toxicablehttps://github.com/Toxicable
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287533931
@KarlXOLhttps://github.com/KarlXOL
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287534027
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287534238
@Toxicablehttps://github.com/Toxicable
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287545434
@KarlXOLhttps://github.com/KarlXOL
https://www.ag-grid.com/ag-grid-angular-aot-dynamic-componentshttps://www.ag-grid.com/ag-grid-angular-aot-dynamic-components
https://eyalvardi.wordpress.com/2016/09/04/injecting-components-in-runtimehttps://eyalvardi.wordpress.com/2016/09/04/injecting-components-in-runtime
http://blog.assaf.co/angular-2-harmony-aot-compilation-with-lazy-jit-2http://blog.assaf.co/angular-2-harmony-aot-compilation-with-lazy-jit-2
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287552399
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287558915
@KarlXOLhttps://github.com/KarlXOL
https://eyalvardi.wordpress.com/2016/09/04/injecting-components-in-runtimehttps://eyalvardi.wordpress.com/2016/09/04/injecting-components-in-runtime
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287560263
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287561524
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287563092
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287568455
@DzmitryShylovichhttps://github.com/DzmitryShylovich
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287569118
@KarlXOLhttps://github.com/KarlXOL
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287569411
@mlc-mlapishttps://github.com/mlc-mlapis
https://github.com/mlc-mlapis
mlc-mlapishttps://github.com/mlc-mlapis
on Mar 18, 2017https://github.com/angular/angular/issues/15275#issuecomment-287569600
@KarlXOLhttps://github.com/KarlXOL
https://github.com/BillyCottrell
BillyCottrellhttps://github.com/BillyCottrell
on Oct 26, 2020https://github.com/angular/angular/issues/15275#issuecomment-716598170
@alarm9khttps://github.com/alarm9k
https://stackoverflow.com/questions/63998467/angular-multiple-templates-in-one-component-based-on-id-with-template-storehttps://stackoverflow.com/questions/63998467/angular-multiple-templates-in-one-component-based-on-id-with-template-store
https://github.com/SamuelMarks
SamuelMarkshttps://github.com/SamuelMarks
on Oct 27, 2020https://github.com/angular/angular/issues/15275#issuecomment-716891540
@BillyCottrellhttps://github.com/BillyCottrell
https://github.com/BillyCottrell
BillyCottrellhttps://github.com/BillyCottrell
on Oct 27, 2020https://github.com/angular/angular/issues/15275#issuecomment-717037823
@SamuelMarkshttps://github.com/SamuelMarks
https://github.com/SamuelMarks
SamuelMarkshttps://github.com/SamuelMarks
on Oct 27, 2020https://github.com/angular/angular/issues/15275#issuecomment-717111777
https://github.com/SamuelMarks/ng-md-componentshttps://github.com/SamuelMarks/ng-md-components
https://github.com/hexoh
hexohhttps://github.com/hexoh
on Apr 7, 2021https://github.com/angular/angular/issues/15275#issuecomment-814822635
@KarlXOLhttps://github.com/KarlXOL
@Nixon-Josephhttps://github.com/Nixon-Joseph
https://github.com/KarlXOL
KarlXOLhttps://github.com/KarlXOL
on Apr 7, 2021https://github.com/angular/angular/issues/15275#issuecomment-814825317
https://github.com/Nixon-Joseph
Nixon-Josephhttps://github.com/Nixon-Joseph
on Apr 7, 2021https://github.com/angular/angular/issues/15275#issuecomment-814844333
@hexohhttps://github.com/hexoh
github repohttps://github.com/angular/angular/issues/15275#issuecomment-659616785
https://github.com/artaommahe
artaommahehttps://github.com/artaommahe
on Apr 7, 2021https://github.com/angular/angular/issues/15275#issuecomment-814847728
angular-robothttps://github.com/apps/angular-robot
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
on Jun 5, 2021https://github.com/angular/angular/issues/15275#event-4846756671
https://github.com/jessicajaniuk
jessicajaniukhttps://github.com/jessicajaniuk
on Jul 9, 2021https://github.com/angular/angular/issues/15275#issuecomment-877496933
jessicajaniukhttps://github.com/jessicajaniuk
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 9, 2021https://github.com/angular/angular/issues/15275#event-5002503492
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Aug 9, 2021https://github.com/angular/angular/issues/15275#issuecomment-895351795
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 Aug 9, 2021https://github.com/angular/angular/issues/15275#event-5130694475
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/15275
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/15275
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
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.