Bonjour j'ai un champ auto-complete et je souhaite fait un if sur le mat-option
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
 
          <mat-option
            *ngFor="let objet of objets| async"
            [value]="
              objet.attribut2!== null
                  ? objet.attribut1 + ' (' + objet.attribut2+ ')'
                  : objet.attribut1
              "
            (onSelectionChange)="setEmeter(objet )"
          >
Mais cela me met une erreur après le ? : Expected operands to be a string or number typeAngular
Comment faire pour concaténer plusieurs string