Comments (2)
The contract for createComponent
and content projection is not well documented, but I believe that we expect/assume that any projected DOM nodes provided are not attached.
A good reason for this is performance. Often manually created DOM is never attached to begin with, so having the responsibility lie with the consumer avoids Angular needing to check if each node is attached, just in case.
from angular.
The contract for
createComponent
and content projection is not well documented, but I believe that we expect/assume that any projected DOM nodes provided are not attached.A good reason for this is performance. Often manually created DOM is never attached to begin with, so having the responsibility lie with the consumer avoids Angular needing to check if each node is attached, just in case.
In that case, is there a way to dynamically create components or embedded views with data binding without automatically attaching them to the DOM? As I mentioned, it seemed like the only way to get data binding to work with an embedded view was to create it via ViewContainerRef.createEmbeddedView()
, which also automatically attaches the embedded view to the document. I tried creating it via TemplateRef.createEmbeddedView()
which doesn't automatically attach it, but data binding to the outer component didn't happen. I thought the context
argument of that function might help but it seems like that is a separate thing.
from angular.
Related Issues (20)
- Recursive loadChildren fails in 17, but worked in 16 HOT 6
- Signals nullability checks horribly broken HOT 4
- `withComponentInputBinding()` for route resolves HOT 5
- Picture resource of angular tutorial not available
- JavaScript Proxy construct trap stopped to work since version 15 HOT 2
- pipes API documentation not showing HOT 1
- There is no HttpClient page!
- Animation not initialized when using ZonelessChangeDetection HOT 1
- HTTP Guide don't have a security page
- Angular localization file generation unexpected whitespace characters HOT 2
- HttpRequest.clone forgets transferCache HOT 3
- toSignal does not unsubscribe when combined with shareReplay HOT 2
- Explicitly set ControlConfig as the parameter object's value type on FormBuilder#group
- No clarification about definition of content initialization
- Router.navigateByUrl navigate to base URL i.e. / when % used as prefix/suffix/in-middle in query param
- Docs: missing closing tag in logical structure of the template HOT 3
- Missing `tbody` in HTML thows a hydration missmatch error. HOT 1
- Add <search> HTML native tag support
- runnable.com can be removed from CONTRIBUTING.md
- Angular.Dev Docs: First App Tutorial - Page 04, Step 4.4 - Image isn't found at provided image source url. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular.