more_horiz
@angular/corecode
assertInInjectionContext
function
stable
Asserts that the current stack frame is within an injection
context and has access to inject.
On this page
API
function assertInInjectionContext(debugFn: Function): void;@paramdebugFn
Functiona reference to the function making the assertion (used for the error message).
@returns
voidJump to details