Global

Methods

enhance(…enhancements) → {EnhancementCreator}

Source:

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>

As function:

  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>}

Source:
Parameters:
Name Type Description
Target Class

The class to enhance.

Returns:

A proxied version of the Target.

Type
Proxy.<Class>