How to detect view refresh in Angular?

Discussão em 'Angular' iniciado por Ya., Novembro 27, 2024.

  1. Ya.

    Ya. Guest

    I have a component that displays dynamic, read-only data. For example:

    <div>{{getText()}}</div>


    I noticed that getText is being invoked over and over by Angular, even if there is seemingly no need to do so, i.e. no data has changed. How can I detect when Angular triggers view refresh?

    Continue reading...

Compartilhe esta Página