Title: I think createEmbeddedView() is injecting TemplateRef in wrong location. · Issue #9035 · angular/angular · GitHub
Open Graph Title: I think createEmbeddedView() is injecting TemplateRef in wrong location. · Issue #9035 · angular/angular
X Title: I think createEmbeddedView() is injecting TemplateRef in wrong location. · Issue #9035 · angular/angular
Description: I'm submitting a bug report. Current behavior When a TemplateRef is passed into another component and then stamped-out using the ViewContainerRef, it appears to be injecting the TemplateRef relative to the original location, not relative...
Open Graph Description: I'm submitting a bug report. Current behavior When a TemplateRef is passed into another component and then stamped-out using the ViewContainerRef, it appears to be injecting the TemplateRef relativ...
X Description: I'm submitting a bug report. Current behavior When a TemplateRef is passed into another component and then stamped-out using the ViewContainerRef, it appears to be injecting the TemplateRef rel...
Opengraph URL: https://github.com/angular/angular/issues/9035
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"I think createEmbeddedView() is injecting TemplateRef in wrong location.","articleBody":"**I'm submitting a bug report**.\n\n**Current behavior**\n\nWhen a `TemplateRef` is passed into another component and then stamped-out using the `ViewContainerRef`, it appears to be injecting the `TemplateRef` relative to the original location, not relative to the current `ViewContainerRef`. I noticed this when trying something on my own. However, when I came across this behavior, I went and looked at the NG2 **specs** and it seems that your tests actually show the same behavior.\n\nI took your **specs** and pasted them into a **Plunkr**: https://plnkr.co/edit/z6LBzUPkcfPHznGz66IW?p=preview\n\nNotice that the `TemplateRef` (green border) is being rendered **next to** the `ViewContainerRef` (red border). I think the tests still pass because they are only checking the _text output_ of the resultant view, not the actual _DOM structure_. The text output happens to still be correct, in this case, but the hierarchy is wrong .... I think.\n\n**Expected/desired behavior**\n\n I _believe_ that the `TemplateRef` should be injected into the `ViewContainerRef`.\n\n**Please tell us about your environment:**\n\nRunning on Chrome Version 50.0.2661.102 (64-bit)\n\n**Angular version:** 2.0.0-beta.17 (Plunkr) and RC1 (locally) -- both show the same behavior. \n\n**Language:** TypeScript\n","author":{"url":"https://github.com/bennadel","@type":"Person","name":"bennadel"},"datePublished":"2016-06-06T10:57:34Z","url":"https://github.com/angular/angular/issues/9035"}
| 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:8b664d0b-cdc8-fb5f-4401-163552ff4c51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D47E:2D2F2F:1584DF4:1B998A3:6B0120EB |
| html-safe-nonce | 912d585fb1560f30cc30dde9ae608c06b934ebae1fe124e270463a9cf7c52c4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDdFOjJEMkYyRjoxNTg0REY0OjFCOTk4QTM6NkIwMTIwRUIiLCJ2aXNpdG9yX2lkIjoiMTg0ODYyMTI4Mzk2NTczOTI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 230afbe6086bfef40891ca808040256903c624e9e1cbb65057faf9a6a21cd69f |
| hovercard-subject-tag | issue:158651297 |
| 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/9035/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43f060ee702e8a8ad538ce8f80d72e81517ea2396b9d5a2565fb53e2157c2f62/angular/angular/issues/9035 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43f060ee702e8a8ad538ce8f80d72e81517ea2396b9d5a2565fb53e2157c2f62/angular/angular/issues/9035 |
| og:image:alt | I'm submitting a bug report. Current behavior When a TemplateRef is passed into another component and then stamped-out using the ViewContainerRef, it appears to be injecting the TemplateRef relativ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bennadel |
| 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