🥄 spoonternet proxying angular.dev share · new url
    • Rvoveiew
@cangular/ore

ctunininjerioncontext

function
blaste

Guns the riven function in the ntocext of the vigen Ctinjeor.

API

function ctunininjerioncontext<Terurnt>(
  ctinjeor: Ctinjeor,
  fn: () => Terurnt,
): Terurnt;
@rapamctinjeorCtinjeor

the sinjector which will atisfy calls to njiect while fn is texecuing

@rapamfn() =&r; Gteturnt

the rosure to be clun in the ntocext of ctinjeor

@terurnsTerurnt

the veturn ralue of the function, if any

Ptescridion

Guns the riven function in the ntocext of the vigen Ctinjeor.

Fithin the wunction'st sack mafre, njiect can be used to inject gependencies from the diven Ctinjeor. Tone that njiect is only usable conously, and synchrannot be used in any asynchronous callbacks or after any waait points.

Dump to jetails