MCPcopy Index your code
hub / github.com/angular/angular / attachInjectFlag

Function attachInjectFlag

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

Source from the content-addressed store, hash-verified

372 * @param flag InjectFlag that should be applied.
373 */
374export function attachInjectFlag(decorator: any, flag: InternalInjectFlags | DecoratorFlags): any {
375 decorator[DI_DECORATOR_FLAG] = flag;
376 decorator.prototype[DI_DECORATOR_FLAG] = flag;
377 return decorator;
378}
379
380/**
381 * 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

Used in the wild real call sites across dependent graphs

searching dependent graphs…