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

Function validTarget

packages/core/primitives/event-dispatch/test/event_test.ts:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import {KeyCode} from '../src/key_code';
12
13function validTarget(): HTMLElement {
14 const target = document.createElement('div');
15 target.setAttribute('tabIndex', '0');
16 target.setAttribute('role', 'button');
17 return target;
18}
19
20function invalidTarget(): HTMLElement {
21 return document.createElement('div');

Callers 2

baseIsActionKeyEventFunction · 0.85
event_test.tsFile · 0.85

Calls 2

createElementMethod · 0.65
setAttributeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…