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

Method fetchDataFromApi

packages/examples/core/ts/platform/platform.ts:54–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52 // #enddocregion
53
54 fetchDataFromApi(): Promise<string> {
55 return new Promise((resolve) => {
56 setTimeout(() => {
57 resolve('ComponentTwo');
58 }, 2000);
59 });
60 }
61}
62
63@NgModule({imports: [BrowserModule], declarations: [ComponentThree]})

Callers 1

ngDoBootstrapMethod · 0.95

Calls 2

setTimeoutFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected