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

Function recordIndex

packages/forms/signals/test/node/field_context.spec.ts:98–105  ·  view source on GitHub ↗
({index}: FieldContext<unknown, PathKind.Item>)

Source from the content-addressed store, hash-verified

96 it('index', () => {
97 const indices: (string | number)[] = [];
98 const recordIndex = ({index}: FieldContext<unknown, PathKind.Item>) => {
99 try {
100 indices.push(index());
101 } catch (e) {
102 indices.push((e as Error).message);
103 }
104 return undefined;
105 };
106 const pets = signal({
107 cats: [
108 {name: 'pirojok-the-cat', age: 5},

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…