Title: Overriding templates/templateUrls of components · Issue #11144 · angular/angular · GitHub
Open Graph Title: Overriding templates/templateUrls of components · Issue #11144 · angular/angular
X Title: Overriding templates/templateUrls of components · Issue #11144 · angular/angular
Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/11144
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overriding templates/templateUrls of components","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\nCurrently one is not able to override templates in a component when using the AOT compiler, which creates inflexibility when one wants to override the template used in a third party library (for example).\n\n**Expected/desired behavior**\n\nThe ability to override the template/templateUrl of a component so that the undesired template isn't compiled in for the app bundle unnecessarily.\n\nAn example of perhaps one approach, I would like the ability to do something like\n\n``` ts\nimport {ComponentOverride} from '@angular/core';\nimport {FooComponent} from 'my-lib';\n\n@ComponentOverride({\n template: `\u003cdiv>\u003c/div>`\n}) FooComponent\n```\n\n**What is the motivation / use case for changing the behavior?**\n\nSee above.\n\nIn addition, this is a feature that has been highly requested by UI Bootstrap users, and will almost certainly come up with third party UI libraries on Angular 2 to avoid rigidity and to allow users to take advantage of prebuilt widgets but avoid rigidity with CSS/HTML structure. This is important for customizability.\n","author":{"url":"https://github.com/wesleycho","@type":"Person","name":"wesleycho"},"datePublished":"2016-08-29T16:07:30Z","url":"https://github.com/angular/angular/issues/11144"}
| 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:4663272a-90df-3c21-a2ee-126daae1ba61 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9056:34DB8F:874F09:B653A1:6B00E5A1 |
| html-safe-nonce | c015578692d47c5e86aad6efd7ff5551599113f042c1441cde229eb7a59ba5b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDU2OjM0REI4Rjo4NzRGMDk6QjY1M0ExOjZCMDBFNUExIiwidmlzaXRvcl9pZCI6IjE0NDg4Nzg2MTg5MTM1OTY4MzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | af9b9997599b96d6684d7884d9647a1e14ebee5d7b56adb83276ae09e7d5a0a9 |
| hovercard-subject-tag | issue:173810682 |
| 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/11144/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d823f67e13550fb62fed54f06485ab9badca5b72d447b6a7a4642f7be5067a73/angular/angular/issues/11144 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d823f67e13550fb62fed54f06485ab9badca5b72d447b6a7a4642f7be5067a73/angular/angular/issues/11144 |
| og:image:alt | I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wesleycho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27088b6977484d0d3321d9a11c907c6d6637b315cfa359ef7952dbf6292f9b14 |
| 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 | 624179fb8b88d26ba5bba08894eb60a1c5a1d93d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width