more_horiz
@angular/corecode
runInInjectionContext
function
stable
Runs the given function in the context of the given
Injector.
On this page
API
function runInInjectionContext<ReturnT>(
injector: Injector,
fn: () => ReturnT,
): ReturnT;Jump to details