Directive: appWithFunctionOverride
Apply function overrides to method calls. This directive wraps a function with override logic.
Usage in TypeScript:
@ViewChild(WithFunctionOverrideDirective) functionOverride!: WithFunctionOverrideDirective;const wrappedFunction = this.functionOverride.applyOverride( 'consumerResume', this.originalConsumerResume); Copy
@ViewChild(WithFunctionOverrideDirective) functionOverride!: WithFunctionOverrideDirective;const wrappedFunction = this.functionOverride.applyOverride( 'consumerResume', this.originalConsumerResume);
Apply function override
The function key
The original function
The wrapped or replaced function
Directive: appWithFunctionOverride
Apply function overrides to method calls. This directive wraps a function with override logic.
Usage in TypeScript: