1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular 17 not showing content when using variable inside

Discussão em 'Angular' iniciado por Mateusz Sobczak, Setembro 30, 2024.

  1. I'm using angular 17 with angular material and when I wanted to show simple string variable it disappear the whole content html:

    <h2 mat-dialog-title>Ticket</h2>

    <mat-dialog-content>
    My ticket: {{ tekst }}
    </mat-dialog-content>

    <mat-dialog-actions>
    <button mat-button mat-dialog-close>Close</button>
    </mat-dialog-actions>


    component

    @Component({
    selector: 'app-ticket-statistic',
    standalone: true,
    imports: [MatDialogTitle, MatDialogContent, MatButtonModule, CommonModule, MatDialogActions, MatDialogClose, MatDialogModule],
    templateUrl: './ticket-statistic.component.html',
    styleUrls: ['./ticket-statistic.component.sass']
    })

    Continue reading...

Compartilhe esta Página