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

Function bindAction

modules/benchmarks/src/util.ts:36–38  ·  view source on GitHub ↗
(selector: string, callback: () => void)

Source from the content-addressed store, hash-verified

34}
35
36export function bindAction(selector: string, callback: () => void) {
37 document.querySelector(selector)!.addEventListener('click', callback);
38}
39
40export function profile(create: () => void, destroy: () => void, name: string) {
41 return function () {

Callers 13

initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90
initFunction · 0.90

Calls 1

addEventListenerMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…