MCPcopy Create free account
hub / github.com/angular/angular / constructor

Method constructor

adev/src/app/main.component.ts:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 readonly search = model<string | undefined>('');
22
23 constructor() {
24 effect(() => {
25 const search = this.search();
26 if (search !== undefined) {
27 this.displaySearchDialog.set(true);
28 this.searchService.searchQuery.set(search);
29 }
30 });
31 }
32}

Callers

nothing calls this directly

Calls 3

effectFunction · 0.90
setMethod · 0.65
searchMethod · 0.45

Tested by

no test coverage detected