How to "nest" or "compose" Angular templates

Viewed 13

I want to be able to build custom Angular components, but then compose them, like this:

<app-my-parent-component>
  <app-my-child-component1></app-my-child-component1>
  <app-my-child-component2></app-my-child-component2>
</app-my-parent-component>

...and so on. In React, you do this in the parent component using the children prop, but so far, I have no idea how to do this in Angular.

0 Answers
Related