I have a component that has two TemplateRefs @ViewChild('optionContent') optionContent: TemplateRef<unknown>; @ViewChild('selectContent') sele ...
I have a component that has two TemplateRefs @ViewChild('optionContent') optionContent: TemplateRef<unknown>; @ViewChild('selectContent') sele ...
I'm trying to create a carousel component that has n amount of child components based on whatever size list it will get. I want the parent (carousel) ...
I've been reading alot and to be honest haven't seen any meaningful solution. So i have a component which contains a button and a dropdown to display ...
For example if I have Component: Is there a proper way to project content while opening a dialog? I know only this way to open the dialog... which ...
I am trying to pass the ng-content selector from my template. but not working either not errors. I am using storybook story.ts: child component ht ...
I have an Angular component that accepts it's content via Content Projection (). Different components can project different HTML into it. For e.g. sup ...
I'm trying to implement a bridge pattern for content projection. In the component that has the ng-content tag in the HTML, I tried to get it via this ...
StackBlitz Eample is here I have a component where I would like the user to define there own template and then I want to pass that template to some n ...
I am working on building a Header component in Angular and want to show the navigation at different locations in the DOM structure according to whethe ...
I have the following component structure: in app.component.html: in placeholder.component.html: in renderer.component.html: The problem is t ...
I'm having an issue modifying the css and click event on a custom attribute directive The DIV in question is inside of a reference to a projected `' ...
I have a component where I would like to display configurable html in the child component. Child components are not accessible to the client. So I thi ...
In a Content Projection scenario I have the following scenario: // my-component.ts @ContentChildren(SelectOption) selectOptions: QueryList<Select ...
I have two components. Let's call them hostComponent and textComponent. I want to project some content inside textContent, and need to modify the proj ...
I am projecting two components. So if i want to know for example if component one is projected inside app-form-field i will do: but i need to ch ...
I have parent component. Inside it i am projecting a input. So i am having this control now i can't find a way to access to the content injected ...
I want to test an Angular Component and replace the contentChild with a Mock. I followed this guide: https://medium.com/angular-in-depth/angular-unit- ...
I have an issue with change detection on nested dynamic component using content projection. Change detection is not triggering automatically on the ch ...
Consider this simplified situation, we have: Parent component template (selector: 'parent'): Child component template (selector: 'child'): Usag ...
I am trying to pass #tmp in the mat-select with template-outlet and I' am not able to display the select options. Below here is my code and a link to ...