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

Function createTallElement

packages/common/test/viewport_scroller_spec.ts:155–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 });
154
155 function createTallElement() {
156 const tallItem = document.createElement('div');
157 tallItem.style.height = '3000px';
158 document.body.appendChild(tallItem);
159 const anchorNode = createAnchorNode();
160 document.body.appendChild(anchorNode);
161
162 return {
163 anchorNode,
164 cleanup: () => {
165 tallItem.remove();
166 anchorNode.remove();
167 },
168 };
169 }
170
171 function createTallElementWithShadowRoot() {
172 const tallItem = document.createElement('div');

Callers 1

Calls 4

createAnchorNodeFunction · 0.70
createElementMethod · 0.65
appendChildMethod · 0.65
removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…