mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add example for assertInInjectionContext (#64325)
PR Close #64325
This commit is contained in:
committed by
Andrew Kushnir
parent
8693959fc7
commit
249fbb3981
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user