MCPcopy
hub / github.com/angular/angular / ɵɵsetComponentScope

Function ɵɵsetComponentScope

packages/core/src/render3/scope.ts:35–43  ·  view source on GitHub ↗
(
  type: ComponentType<any>,
  directives: Type<any>[] | (() => Type<any>[]),
  pipes: Type<any>[] | (() => Type<any>[]),
)

Source from the content-addressed store, hash-verified

33 * @codeGenApi
34 */
35export function ɵɵsetComponentScope(
36 type: ComponentType<any>,
37 directives: Type<any>[] | (() => Type<any>[]),
38 pipes: Type<any>[] | (() => Type<any>[]),
39): void {
40 const def = type.ɵcmp as ComponentDef<any>;
41 def.directiveDefs = extractDefListOrFactory(directives, extractDirectiveDef);
42 def.pipeDefs = extractDefListOrFactory(pipes, getPipeDef);
43}
44
45/**
46 * Adds the module metadata that is necessary to compute the module's transitive scope to an

Callers 1

hmr_spec.tsFile · 0.90

Calls 1

extractDefListOrFactoryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…