1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular - trackBy with array of primitives

Discussão em 'Angular' iniciado por Roghul, Setembro 12, 2024.

  1. Roghul

    Roghul Guest

    I've read a documentation, I've tried to google it and check with code but still I can't find an answer.

    I have an array of string, for example ['Tom', 'Sarah', 'Ben']. Its content will change dynamically and regularly. I'd like to use a trackBy function with it.

    1. Generally, is there sense to do it?
    2. If so, how should I use trackBy with such array? I want to avoid converting data to object with id.

    Thank you

    Continue reading...

Compartilhe esta Página