Title: Insert / Detach ViewRefs between multiple ViewContainerRefs · Issue #20824 · angular/angular · GitHub
Open Graph Title: Insert / Detach ViewRefs between multiple ViewContainerRefs · Issue #20824 · angular/angular
X Title: Insert / Detach ViewRefs between multiple ViewContainerRefs · Issue #20824 · angular/angular
Description: I'm submitting a... [X] Bug Report [X] Feature request I am not sure if the behavior is intended but it clearly causes problems. Current behavior We are unable to detach a ViewRef from ViewContainerRef A and attach it to a different View...
Open Graph Description: I'm submitting a... [X] Bug Report [X] Feature request I am not sure if the behavior is intended but it clearly causes problems. Current behavior We are unable to detach a ViewRef from ViewContaine...
X Description: I'm submitting a... [X] Bug Report [X] Feature request I am not sure if the behavior is intended but it clearly causes problems. Current behavior We are unable to detach a ViewRef from ViewCont...
Opengraph URL: https://github.com/angular/angular/issues/20824
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Insert / Detach ViewRefs between multiple ViewContainerRefs","articleBody":"\u003c!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n--\u003e\r\n\r\n## I'm submitting a...\r\n\r\n[X] Bug Report\r\n[X] Feature request\r\nI am not sure if the behavior is intended but it clearly causes problems.\r\n\r\n## Current behavior\r\n\u003c!-- Describe how the issue manifests. --\u003e\r\nWe are unable to detach a ViewRef from **ViewContainerRef A** and attach it to a different **ViewContainerRef B**\r\n\r\nInsert / Detaching doesn't trigger change detection on both ViewContainers.\r\nUsing `@ContentChildren` fails to update changes properly.\r\n\r\n## Expected behavior\r\n\u003c!-- Describe what the desired behavior would be. --\u003e\r\nI would like to be able to detach a ViewRef and attach it to a new ViewContainer without recreating the components inside the view. This should work without any issues.\r\n\r\n## Minimal reproduction of the problem with instructions\r\nhttps://stackblitz.com/edit/angular-gitter-couoxk?file=app%2Ftest.ts\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\u003c!-- Describe the motivation or the concrete use case. --\u003e\r\nWould allow to implement Drag \u0026 Drop that doesn't recreate the components when an item is dragged over.\r\nWould allow to manipulate dom without using nativeElement, No more worrying about *ngFor trying to find the changes and throwing errors when nodes are missing in dom.\r\n\r\n## Environment\r\n\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular version: 4.x\r\nand \r\nAngular version: 5.x\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version --\u003e\r\n\r\nBrowser:\r\n\r\n- [x] Chrome (desktop) version XX\r\n- [x] Chrome (Android) version XX\r\n- [x] Chrome (iOS) version XX\r\n- [x] Firefox version XX\r\n- [x] Safari (desktop) version XX\r\n- [x] Safari (iOS) version XX\r\n- [x] IE version XX\r\n- [x] Edge version XX\r\n \r\nFor Tooling issues:\r\n- Node version: XX \u003c!-- run `node --version` --\u003e\r\n- Platform: \u003c!-- Mac, Linux, Windows --\u003e\r\n\r\nOthers:\r\n\u003c!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... --\u003e\r\n\u003c/code\u003e\u003c/pre\u003e\r\n","author":{"url":"https://github.com/azarus","@type":"Person","name":"azarus"},"datePublished":"2017-12-06T12:56:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/20824/angular/issues/20824"}
| 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:defbd3b8-b8c5-b9f2-95f8-5c8a1496bf1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B5E:1C3088:24F33FE:2F6DA4F:698C0D4F |
| html-safe-nonce | 0b793f424d09955cc85a3c23b6f549fa5de4941809fa6a8e06292509ff95adc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjVFOjFDMzA4ODoyNEYzM0ZFOjJGNkRBNEY6Njk4QzBENEYiLCJ2aXNpdG9yX2lkIjoiMTMwNTE3MDQzNDc5OTE3NzAzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 019c4c58330d585055888a032ad7e5d29bd61b42ceb0af85af195fbc5d734d03 |
| hovercard-subject-tag | issue:279743281 |
| 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/20824/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c509eda36ac1c9763dcfa07c3d056b755f9e3570675d2204cc8853a224debfdf/angular/angular/issues/20824 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c509eda36ac1c9763dcfa07c3d056b755f9e3570675d2204cc8853a224debfdf/angular/angular/issues/20824 |
| og:image:alt | I'm submitting a... [X] Bug Report [X] Feature request I am not sure if the behavior is intended but it clearly causes problems. Current behavior We are unable to detach a ViewRef from ViewContaine... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | azarus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 640eeb7b6ff4d8d106235d228c0c286e82592d4d2403227b5b2b4fc5832297a4 |
| 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 | 3d444f0a47beeeac94cddbb51c91ab408befe8d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width