How to create a component with sub elements in Angular

Discussão em 'Angular' iniciado por parascus, Janeiro 29, 2025.

  1. parascus

    parascus Guest

    I try to create an own component in Angular 19 that works similar to the MatCard. There, I can define a template like:

    <mat-card appearance="outlined">
    <mat-card-header>
    <h3>It's a kind of header</h3>
    </mat-card-header>

    <mat-card-content>
    Yippie, here comes my content.
    </mat-card-content>

    <mat-card-actions>
    act as you want
    </mat-card-actions>
    </mat-card>


    What is this kind of template called so I can look for some examples?

    Best regards

    Parascus

    Continue reading...

Compartilhe esta Página