assertInInjectionContext
Asserts that the current stack frame is within an injection
context and has access to inject
.
assertInInjectionContext(debugFn: Function): void
Parameters
debugFn
|
Function |
a reference to the function making the assertion (used for the error message). |
Returns
void