POC: investigate pros/cons of switching from `ng-content` to `slot`
See original GitHub issueIs this a bug, enhancement, or feature request?
feature request
Briefly describe your proposal.
Currently, when you have nested Angular custom elements, and the child element contains ng-content
or content
elements in its template, content projection/insertion points don’t work. It works if it is used slot
elements.
More information can be found here:
angular/angular/issues/24536
The idea is to explore the option of migrating from using ng-content
to slot
.
Which versions of Angular and Fundamental NGX are affected? (If this is a feature request, use current version.)
angular 7.2 fundamental-ngx - latest
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Angular ng-content and Content Projection: A Complete Guide ...
We are going to see how content projection works, when to use it and why, and how it can improve a lot the...
Read more >Optional content projection/injection in Angular
To make an informed decision I created a POC implementing both options to see if one is superior to the other. In contrast...
Read more >Electronic Crime Scene Investigation
Some do not contain disk drives, but may con- tain PC card slots that can hold a modem, hard drive, or other device....
Read more >My job is writing software for slot machines and casino systems.
That's how normal slots work. Moving on to progressives. Let's say a progressive must hit by $10k. Every time a player places a...
Read more >Untitled
Chaos theory pc gamepad! Lh 7000 lg firmware, Gilbert game stores, New york gospel church tour, Camco 40128, Pole sitting monks, Trd tx...
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 Free
Top 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
as you already know you can use both in angular to project the content and I think the only added value as of now if you plan to use your angular component as custom elements. In such case your component is ready for it.
When we implemented a fiori3 shellbar as customer element so it can be used in both angularJS apps and as well as in angular we had to use slots inside angualr components there was no other way - but in here I am not sure…
@fkolar do you know how many components would be affected? And what should we use to replace them?