What is the use of ngfortrackby directive?



What is the use of ngfortrackby directive?..

Answer / Shailesh Narayan Gautam

The ngForTrackBy directive in AngularJS is used to specify a custom comparison function for tracking changes in items when iterating over arrays with the ngFor directive. This can improve performance by reusing existing DOM elements for unchanged items.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How AngularJS compilation is different from other JavaScript frameworks?

1 Answers  


List the key components of angular 2?

1 Answers  


Mention what are the styling form that ngmodel adds to css classes?

1 Answers  


Explain ng-bind and ng-bind-html directives.

1 Answers  


What is the difference between ng-if, ng-show/ng-hide?

1 Answers  


What is ivy renderer?

1 Answers  


What is pathmatch in angular routing?

1 Answers  


What is async pipe?

1 Answers  


Sketch a pictorial diagram of angular architecture.

1 Answers  


What is es6?

1 Answers  


What happen when I import the same module twice?

1 Answers  


Explain host decorator in angular 2?

1 Answers  


Categories