Last Updated on: (senast uppdaterad på:)
To include a component in another component use the component’s selector in your new component
If I have a component that has a selector “app-logic10-base-ingredients”, I can include it in my “show-item” component.
To include it, write so in the html file of the “show-item” component:
<div style="border:1px solid green"> <p>show-item component works!</p> <app-logic10-base-ingredients></app-logic10-base-ingredients> </div>