Skip to content

Commit 4b10488

Browse files
committed
add image
1 parent 4d90f5d commit 4b10488

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/assets/blog/angular-resource-rxresource-httpresource-introduction.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ tags:
88
- Angular rxResource
99
- Angular httpResource
1010
- Angular HTTP
11+
ogImage: 01.png
1112
---
1213

1314
Angular 20 正式推出了全新的 Resource API 系列,包括 `resource()``rxResource()``httpResource()`,以 Angular Signals 強大的 reactive programming 思考簡化非同步資料處理。這篇文章將針對這三種用法做完整介紹與比較,了解它們的使用方式、與傳統 `HttpClient` 的差異,以及在實際中小型應用中的應用情境。文中也會涵蓋撰寫單元測試驗證 Resource API 呼叫的方法,並分享最佳實務與常見地雷。讓我們一起來看看 Angular 20 的這項新功能如何讓開發更輕鬆又優雅吧!
1415

1516
<!-- more -->
1617

18+
{% asset_img 01.png %}
19+
1720
## Resource / rxResource / httpResource 是什麼?
1821

1922
Resource API 是 Angular 19 引入的實驗性功能 (Angular 19.0 提供 `resource` / `rxResource`,19.2 新增了 `httpResource`),並在 Angular 20 進一步改良。
1.67 MB
Loading

0 commit comments

Comments
 (0)