Sitelet https://web.archive.org/web/20240920155751/https://angular.dev/api/core/runInInjectionContext/
@angular/core

runInInjectionContext

function

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

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