function
Asserts that the current stack frame is within an injection context and has access to inject
.
assertInInjectionContext(debugFn: Function): void
debugFn | Function | a reference to the function making the assertion (used for the error message). |
void
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/assertInInjectionContext