question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

POC: investigate pros/cons of switching from `ng-content` to `slot`

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fkolarcommented, Oct 26, 2019

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…

0reactions
droshevcommented, Nov 6, 2021

@fkolar do you know how many components would be affected? And what should we use to replace them?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found