Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/angular
/ createAnchorNode
Function
createAnchorNode
packages/common/test/viewport_scroller_spec.ts:191–196 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
189
}
190
191
function
createAnchorNode() {
192
const
anchorNode = document.createElement(
'a'
);
193
anchorNode.innerText =
'some link'
;
194
anchorNode.href =
'#'
;
195
return
anchorNode;
196
}
197
});
198
});
Callers
2
createTallElement
Function · 0.70
createTallElementWithShadowRoot
Function · 0.70
Calls
1
createElement
Method · 0.65
Tested by
no test coverage detected