How can i exclude certain method inside component? or is there any method level annotation like @Wove?
kailashthakuri opened this issue · comments
Can you elaborate? The question is a little unclear. Maybe with a code example as well.
Here, @wove is used in component level that intercept all methods of that component. My requirement is to intercept certain method of that component.
Is there any annotation for method level that intercept only that method.
In your aspect, use the @beforeMethod
or any other decorator that suits your needs. See the example.
class SigninComponentAspect {
@beforeMethod({
classes: [SigninComponent],
methodNamePattern: /^submitForm$/
})
invokeBeforeMethod(meta: Metadata) {
// Handle stuff
}
}