Support transform DOM to ViewContainerRef
See original GitHub issueFeature Request
Relevant Package
This feature request is for @angular/core
Description
Provider a API to transform DOM to ViewContainerRef, What I want have being posted in stack overflow.
Describe the solution you’d like
const dom = document.querySelect('.ref');
const vcr: ViewContainerRef = xxxx.toVcr(dom);
Describe alternatives you’ve considered
Have you considered any alternative solutions or workarounds?Issue Analytics
- State:
- Created 2 years ago
- Reactions:34
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Exploring Angular DOM manipulation techniques using ...
The article explores common elements used for DOM manipulation in Angular with a particular focus on ViewContainerRef. Learn why they are needed, ...
Read more >ViewContainerRef - Angular
Property, Description. abstract element: ElementRef, Read-Only. Anchor element that specifies the location of this container in the containing view.
Read more >How to extract ViewContainerRef and ComponentRef in most ...
I work with angular-material mdSidenav and want to programmatically open it and insert custom component. I use @ViewChild('varName') to extract ...
Read more >Angular ElementRef, TemplateRef, and ViewContainerRef ...
An overview of ElementRef, TemplateRef, ViewRef, and ViewContainerRef in Angular and how to modify the DOM programmatically. Read to learn more.
Read more >Angular: View Container and Renderer | by Sabya Sachi
Renderer: Use when we need to change/read DOM element properties. ViewContainerRef: Use when we need to modify DOM hierarchy. We will try to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have a new resolution with CDK. It can help me insert a component to a preset dom.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.