@angular/core

runInInjectionContext

function

Runs the given function in the context of the given Injector.

  
    function runInInjectionContext<ReturnT>(  injector: Injector,  fn: () => ReturnT): ReturnT;
  
  
Jump to details