Question: What is the purpose of trackBy in ngFor?Answer: The trackBy function is used in ngFor to improve the performance of rendering by helping Angular identify which items have changed, been added, or been removed in a list.Example:
|
Simpan untuk Revisi
Bookmark item ini, tandai sebagai sulit, atau masukkan ke dalam set revisi.
Masuk untuk menyimpan bookmark, pertanyaan sulit, dan set revisi.
Apakah ini membantu? Ya Tidak
Most helpful rated by users: