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

Function getRootTViewTemplate

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

Source from the content-addressed store, hash-verified

532}
533
534function getRootTViewTemplate(
535 creationBindings: Binding[] | null,
536 updateBindings: Binding[] | null,
537): ComponentTemplate<unknown> | null {
538 if (!creationBindings && !updateBindings) {
539 return null;
540 }
541
542 return (flags) => {
543 if (flags & RenderFlags.Create && creationBindings) {
544 for (const binding of creationBindings as BindingInternal[]) {
545 binding.create!();
546 }
547 }
548
549 if (flags & RenderFlags.Update && updateBindings) {
550 for (const binding of updateBindings as BindingInternal[]) {
551 binding.update!();
552 }
553 }
554 };
555}
556
557function isInputBinding(binding: Binding): boolean {
558 const kind = (binding as BindingInternal)[BINDING].kind;

Callers 1

createRootTViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected