Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49375

Ionic slot not working when ionic element is wrapped in a component

$
0
0

Hi,

I have an angular component, which wraps an ion-icon.

to make sure, the component does not interfere with the layout; I am using css:
:host { display: contents } for the component.

The component allows passing slot as an input parameter, which I want to be the slot in which the icon should go when it is specified.

However, this does not seem to work. Specifying slot on the component also doesnt work.

Minimal sample demonstrating the scenario:

Thanks for your help!

4 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 49375

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>