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

Function locateOrCreateAnchorNode

packages/core/src/linker/view_container_ref.ts:839–851  ·  view source on GitHub ↗
(
  lContainer: LContainer,
  hostLView: LView,
  hostTNode: TNode,
  slotValue: any,
)

Source from the content-addressed store, hash-verified

837}
838
839function locateOrCreateAnchorNode(
840 lContainer: LContainer,
841 hostLView: LView,
842 hostTNode: TNode,
843 slotValue: any,
844): void {
845 if (!_populateDehydratedViewsInLContainer(lContainer, hostTNode, hostLView)) {
846 // Populating dehydrated views operation returned `false`, which indicates
847 // that the logic was running in client-only mode, this an anchor comment
848 // node should be created for this container.
849 createAnchorNode(lContainer, hostLView, hostTNode, slotValue);
850 }
851}
852
853export function enableLocateOrCreateContainerRefImpl() {
854 _locateOrCreateAnchorNode = locateOrCreateAnchorNode;

Callers

nothing calls this directly

Calls 2

createAnchorNodeFunction · 0.70

Tested by

no test coverage detected