W3cubDocs

/Angular

assertInInjectionContext

Asserts that the current stack frame is within an injection context and has access to inject.

API

function assertInInjectionContext(debugFn: Function): void;

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/assertInInjectionContext