ng-repeat clones DOM for collections—always use track by stable keys for performance and correct reuse.
Important interview questions and answers
- Q: Why does this matter?
A: ng-repeat clones DOM for collections—always use track by stable keys for performance and correct reuse.
Self-check
- Summarize ngRepeat basics in one sentence.
- What would you try next in the playground?
Challenge
ngRepeat basics hands-on
- Edit the default code.
- Click Run in browser.
- Confirm preview or terminal output.
Done when: preview or terminal matches the lesson goal.
Pitfall: Omitting track by causes wrong DOM reuse when lists reorder—use stable ids.