avatar
文章
11
標籤
18
分類
17
關於我
HAO Lab
關於我

HAO Lab

動態載入 Web Component
發表於2023-09-10|更新於2023-09-10|FrontendWeb Component|Frontend•Angular•Web Component
什麼是 Web Component?Web Component 是一個封裝自定義元件的技術,讓我們可以輕易地在不同應用程式中重用這些被封裝的元件,不僅如此,Web Component 不限定應用程式使用的框架或函式庫,不論今天是 Angular 或 React,甚至是 Vanilla JavaScript 都能夠輕鬆使用。 INFO:關於 Web Component 的詳細資訊可以參考 MDN。 為什麼需要 Web Component?Web Component 的問世,可以實現較理想的 微前端(Micro Frontend) 概念,在過去,會以 iframe 的形式將其他團隊開發的元件、頁面嵌入至自己的系統內來實現微前端,但這樣的做法會有很多的限制,比如:跨域、生命週期等。 透過 Web Component 則可以避免這些問題,因為概念上就是將其他團隊開發的元件程式碼嵌入並串接至自己的系統裡。 NOTE:微前端也可以用 Module Federation 技術來實作,有興趣的話,可以參考相關文件。 動態載入 Web Component目前常見的 Web...
12
avatar
HAO
樂於分享與熱愛學習的工程師
文章
11
標籤
18
分類
17
公告
全世界第一本繁體中文 NestJS 入門書籍已上架,歡迎點擊這裡前往購買!
最新文章
用 Temporal 實現 Orchestration Saga2026-01-05
用 Idle detection API 檢測用戶狀態2025-10-11
用 Air 實現 Live Reload 加速開發 Golang 應用2025-07-12
Zog 簡介2025-06-28
Highlight 表格搜尋關鍵字2025-05-25
分類
  • Backend6
    • KrakenD1
    • NestJS4
      • Advanced1
      • Contract Testing2
    • Saga1
      • Temporal1
        • Golang1
標籤
Contract Testing Web Component APIGateway Saga Pact Valkey KrakenD Golang Temporal NestJS Cache Angular Backend Web APIs DevTool Pact Broker Validation Frontend
歸檔
  • 一月 2026 1
  • 十月 2025 1
  • 七月 2025 1
  • 六月 2025 1
  • 五月 2025 1
  • 四月 2025 1
  • 三月 2025 1
  • 二月 2025 1
網站資訊
文章數量 :
11
訪客數 :
總瀏覽量 :
最後更新時間 :
推薦 Blog
hcLuo Blog
Leo's Coding Life
©2023 - 2026 By HAO
框架 Hexo 7.3.0|主題 Butterfly 5.3.5