MCPcopy Create free account
hub / github.com/angular/angular / attachInjectFlag

Function attachInjectFlag

packages/core/src/di/injector_compatibility.ts:368–372  ·  view source on GitHub ↗
(decorator: any, flag: InternalInjectFlags | DecoratorFlags)

Source from the content-addressed store, hash-verified

366 * @param flag InjectFlag that should be applied.
367 */
368export function attachInjectFlag(decorator: any, flag: InternalInjectFlags | DecoratorFlags): any {
369 decorator[DI_DECORATOR_FLAG] = flag;
370 decorator.prototype[DI_DECORATOR_FLAG] = flag;
371 return decorator;
372}
373
374/**
375 * Reads monkey-patched property that contains InjectFlag attached to a decorator.

Callers 1

metadata.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected