iT邦幫忙

鐵人檔案

2024 iThome 鐵人賽
回列表
JavaScript

Signal API in Angular 系列

My topic is Signal API in Angular and how it has simplified the development since version 16. I will demonstrate signal usage, toSignal/toObservable in RxJS-interop, and other new signal features that revolutionize the change detection lifecycle.

鐵人鍊成 | 共 44 篇文章 | 17 人訂閱 訂閱系列文 RSS系列文

Day 41 - 使用 AfterRenderEffect 生命週期鉤子進行反應式 DOM 讀寫

Introduction 在 Angular 19 中,實驗性生命週期鉤子 afterRenderEffect 允許開發人員更新 DOM。 與 afterNex...

2024-12-26 ‧ 由 connieleung 分享

Day 42 - toSignal 函數中的相等性檢查

在 Angular 18 中,toSignal 函數新增了與訊號和計算函數相同的可選 equal 選項。 當省略 equal 選項時,將套用預設值 (===),...

2025-01-03 ‧ 由 connieleung 分享

Day 43 - toSignal 函數的初始值

Observable 是惰性的;因此,除非被訂閱,否則它不會發出值。另一方面,訊號始終具有值,包括 toSignal 函數建立的訊號。雖然 toSignal 函...

2025-01-04 ‧ 由 connieleung 分享

Day 44 - toSignal 函數的 manualCleanup

當 toSignal 函數在 root-level 服務中建立訊號並將其傳回給元件時,creation context 就是 root-level 服務。當元件...

2025-01-25 ‧ 由 connieleung 分享