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

Function getRootTViewTemplate

packages/core/src/render3/component_ref.ts:516–537  ·  view source on GitHub ↗
(
  creationBindings: Binding[] | null,
  updateBindings: Binding[] | null,
)

Source from the content-addressed store, hash-verified

514}
515
516function getRootTViewTemplate(
517 creationBindings: Binding[] | null,
518 updateBindings: Binding[] | null,
519): ComponentTemplate<unknown> | null {
520 if (!creationBindings && !updateBindings) {
521 return null;
522 }
523
524 return (flags) => {
525 if (flags & RenderFlags.Create && creationBindings) {
526 for (const binding of creationBindings as BindingInternal[]) {
527 binding.create!();
528 }
529 }
530
531 if (flags & RenderFlags.Update && updateBindings) {
532 for (const binding of updateBindings as BindingInternal[]) {
533 binding.update!();
534 }
535 }
536 };
537}
538
539function isInputBinding(binding: Binding): boolean {
540 const kind = (binding as BindingInternal)[BINDING].kind;

Callers 1

createRootTViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…