Methods
enhance(…enhancements) → {EnhancementCreator}
Creates a function to enhance an Aurelia's class with other class(es). This method has this sintax because is intended to be used as a decorator.
Examples
<caption>As decorator</caption>
enhance(MyEnhancement)(MyViewModel);
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
enhancements |
Class |
<repeatable> |
The class or list of classes to enhance the target. |
Returns:
- Type
- EnhancementCreator
Type Definitions
EnhancementCreator(Target) → {Proxy.<Class>}
Parameters:
Name | Type | Description |
---|---|---|
Target |
Class | The class to enhance. |
Returns:
A proxied version of the Target
.
- Type
- Proxy.<Class>