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

Function getRootTViewTemplate

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

Source from the content-addressed store, hash-verified

558}
559
560function getRootTViewTemplate(
561 creationBindings: Binding[] | null,
562 updateBindings: Binding[] | null,
563): ComponentTemplate<unknown> | null {
564 if (!creationBindings && !updateBindings) {
565 return null;
566 }
567
568 return (flags) => {
569 if (flags & RenderFlags.Create && creationBindings) {
570 for (const binding of creationBindings as BindingInternal[]) {
571 binding.create!();
572 }
573 }
574
575 if (flags & RenderFlags.Update && updateBindings) {
576 for (const binding of updateBindings as BindingInternal[]) {
577 binding.update!();
578 }
579 }
580 };
581}
582
583function isInputBinding(binding: Binding): boolean {
584 const kind = (binding as BindingInternal)[BINDING].kind;

Callers 1

createRootTViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected