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

Function getRootTViewTemplate

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

Source from the content-addressed store, hash-verified

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

Callers 1

createRootTViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected