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

Displaying Nested Object Data in Angular 18 NGRX Signals

Discussão em 'Angular' iniciado por Zed, Outubro 16, 2024 às 08:22.

  1. Zed

    Zed Guest

    I am currently working with Angular 18, and I retrieve a customer object. Inside this object, there is another object called financialSituation. I want to display the data from this object, and currently, I’m using this syntax:

    <div class="div">{{customer$$()?.financialSituation?.children}}</div>

    Is there a better method to do this? Should I avoid using question marks? And how could I handle the case where it is null or undefined? Write another value in that case?

    Continue reading...

Compartilhe esta Página