docs: add example for assertInInjectionContext (#64325)

PR Close #64325
This commit is contained in:
SkyZeroZx
2025-10-09 18:14:48 -05:00
committed by Andrew Kushnir
parent 8693959fc7
commit 249fbb3981
2 changed files with 33 additions and 6 deletions
+2
View File
@@ -68,6 +68,8 @@ export function isInInjectionContext(): boolean {
*
* @param debugFn a reference to the function making the assertion (used for the error message).
*
* @see [Asserts the context](guide/di/dependency-injection-context#asserts-the-context)
*
* @publicApi
*/
export function assertInInjectionContext(debugFn: Function): void {