2
I have a reactive form and I need to show this card only when in my array listAtributos[i].indexvariacaoatributo
is different from null
. It turns out that initially there is no indexvariacaoatributo
, then it returns:
Cannot read Property 'indexvariacaoatributo' of Undefined
What I tried to:
<ng-container *ngFor="let item of variacoes.controls; let i = index;">
<div *ngIf="listAtributos[i].indexvariacaoatributo !== undefined && listAtributos[i].indexvariacaoatributo !== null" class="animacaogeral animated zoomIn">
Is there any alternative for me to only show this card when my property of my array (indexvariacaoatributo) is different from null before it exists?