• Overview
@angular/core

assertInInjectionContext

function
stable

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

API

function assertInInjectionContext(debugFn: Function): void;
Jump to details