Skip to content

Commit 6f6589b

Browse files
committed
refactor: adding this as an example
1 parent aea58b4 commit 6f6589b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<h1>Welcome app!</h1>
22

3-
<pre>{{ movie() | json }}</pre>
3+
<pre>{{ testApiCall() | json }}</pre>
44

55
<router-outlet></router-outlet>

libs/frontend/root/src/root/root.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { derivedAsync } from 'ngxtension/derived-async';
1313
})
1414
export class RootComponent {
1515
private readonly httpClient = inject(HttpClient);
16-
movie = derivedAsync(() =>
16+
testApiCall = derivedAsync(() =>
1717
this.httpClient.get(`http://localhost:3000/api/backend-test`),
1818
);
1919
}

0 commit comments

Comments
 (0)