1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to create an Angular Element with Angular Material?

Discussão em 'Angular' iniciado por user12970713, Novembro 6, 2024 às 13:52.

  1. user12970713

    user12970713 Guest

    I am creating an Angular Element in which I am using Angular Material design. The Material contents are not getting rendered in the browser, but it's showing up on the DOM.

    My element template looks like this:

    <h1>Hello world!</h1>
    <mat-menu #appMenu="matMenu">
    <button mat-menu-item>Settings</button>
    <button mat-menu-item>Help</button>
    </mat-menu>

    <button mat-icon-button [matMenuTriggerFor]="appMenu">
    <mat-icon>more_vert</mat-icon>Click Me!
    </button>


    Final output

    Continue reading...

Compartilhe esta Página