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

Class AppComponent

modules/benchmarks/src/class_bindings/app.component.ts:22–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 standalone: false,
21})
22export class AppComponent {
23 show = false;
24 msg = 'hello';
25 list: {i: number; text: string}[] = [];
26
27 constructor() {
28 for (let i = 0; i < 1000; i++) {
29 this.list.push({i, text: 'foobar' + i});
30 }
31 }
32
33 create() {
34 this.show = true;
35 }
36
37 update() {
38 this.msg = this.msg === 'hello' ? 'bye' : 'hello';
39 this.list[0].text = this.msg;
40 }
41
42 destroy() {
43 this.show = false;
44 }
45}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…