Attribute transferring
Forward bindings from a custom element to its inner template using Aurelia's spread operators.
export class FormInput {
@bindable label
@bindable value
}<label>${label}
<input value.bind="value">
</label>export class FormInput {
@bindable label
@bindable value
@bindable type
@bindable tooltip
@bindable arias
@bindable etc
}Aurelia Spread Operators Overview
Operator
Purpose
Example
Usage
How it works
What attributes are captured
How will attributes be applied in ...$attrs
Advanced Spread Patterns
Mixed Binding Patterns
Complex Member Access
Conditional Spreading
Automatic Expression Inference
Shorthand Binding Syntax
Inference Rules
Performance Considerations
Binding Creation Optimization
One-time Change Detection
Memory Usage Guidelines
Error Handling & Edge Cases
Null and Undefined Handling
Invalid Expressions
Type Safety with TypeScript
Advanced Capture Patterns
Capture Filtering
Multi-level Capture Guidelines
Template Controller Compatibility
Integration Examples
Component Composition
Working with Third-party Components
Dynamic Component Creation
Common Patterns and Best Practices
1. Configuration Objects
2. Conditional Properties
3. Proxy Objects for Transformation
4. Default Values with Spreading
Last updated
Was this helpful?