Function: Aspect()
Less than 1 minute
AspectJS • Docs
Function: Aspect()
Aspect(...
args
):ClassDecorator
Use the @Aspect()
annotation on a class to mark that class as an aspect. The aspect could then be enabled with the Weaver.enable method.
Parameters
• ...args: [string
| AspectOptions
]
Returns
ClassDecorator
Example
@Aspect()
class MyAspect {
}
getWeaver().enable(new MyAspect());
Defined in
packages/core/src/aspect/aspect.annotation.ts:23