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

How non-signal values notify angular for updating the component's UI

Discussão em 'Angular' iniciado por Aneesh Gupta, Outubro 10, 2024 às 03:42.

  1. Aneesh Gupta

    Aneesh Gupta Guest

    Custom services in Angular can have either signal based or non-signal based properties. In case of signal based properties, if they update, angular ensures to notify the component (which injects such a service, and is consuming some content from service which can be updated by the service) about such data updates and hence updates the UI.

    But, if services have non-signal based properties, and then if any data change happens in the service, then too the UI of the component IS updated. Can anyone kindly explain that if we use non-signal values in service, then how the component gets to know that it needs to recompute the data values on data updates by the service ?

    Continue reading...

Compartilhe esta Página