List Rendering
Master list rendering in Aurelia with repeat.for. Learn efficient data binding, performance optimization, advanced patterns, and real-world techniques for dynamic collections including arrays, maps, s
Core Concepts
The repeat.for Binding
repeat.for Binding<ul>
<li repeat.for="item of items">
${item.name}
</li>
</ul>for (let item of items) {
// Aurelia creates DOM element for each item
console.log(item.name);
}Change Detection and Updates
Performance Optimization with Keys
Why Keys Matter
Key Strategies
When to Use Keys
Contextual Properties
Complete Property Reference
Property
Type
Description
Nested Repeats and $parent
Accessing Previous Items with $previous
Section Headers and Dividers
Comparison and Change Indicators
Combining with Keys
Conditional Contextual Properties
Performance Considerations
Data Types and Collections
Arrays
Sets
Maps
Number Ranges
Advanced Patterns
Destructuring Declarations
Integration with Other Template Controllers
Working with Async Data
Complex Object Iteration
Performance Best Practices
Optimizing Large Lists
Memory Management
Custom Collection Handlers
Built-in Handlers
Creating Custom Handlers
Observable Collections
Troubleshooting Common Issues
Issue: Changes Not Reflecting
Issue: Form State Lost on Reorder
Issue: Performance with Large Lists
Issue: Memory Leaks
Real-World Examples
Dynamic Product Catalog
Data Table with Sorting
TypeScript Integration
Type-Safe Repeats
Last updated
Was this helpful?