AngularJS Services
暫譯: AngularJS 服務
Jim Lavin
- 出版商: Packt Publishing
- 出版日期: 2014-08-22
- 售價: $1,260
- 貴賓價: 9.5 折 $1,197
- 語言: 英文
- 頁數: 184
- 裝訂: Paperback
- ISBN: 1783983566
- ISBN-13: 9781783983568
-
相關分類:
Angular
海外代購書籍(需單獨結帳)
商品描述
About This Book
- Understand how services are a vital component of the AngularJS framework and how leveraging services can benefit your application
- Design and structure your AngularJS services and learn the best practices used in designing AngularJS services
- Effectively write, test, and finally deploy your application
Who This Book Is For
If you are an intermediate JavaScript developer who is looking to enhance your understanding of single-page web application development with a focus on AngularJS services, then this book is for you.
What You Will Learn
- Write Jasmine scenarios to test your AngularJS services
- Implement common functionality that can be leveraged by the controllers, directives, and other services in your application
- Build services that create, retrieve, update, and delete your application's data on external servers
- Incorporate third-party JavaScript libraries into your AngularJS application
- Move business logic to the client side to build a new class of serverless applications
- Optimize your AngularJS application for maximum performance
In Detail
This book provides you with the skills and best practices needed to create AngularJS services. It starts with the fundamentals of what services are and their role in a typical AngularJS application. You will walk through the development of a real-world application using services across the various application layers and then move on to create services that provide cross-cutting concerns such as messaging, logging, and authentication.
Next, the book covers services that provide data access showing you how to interact with external cloud-based data services and how to cache data on the client to reduce network latency. The book then shows you how to write services that leverage other cloud-based services to create mashups and include functionality in your application without writing a lot of code.
You will also learn how to create business logic objects, rules engines, and finite state machines, which can be used to provide business logic for your application.
商品描述(中文翻譯)
**設計、建構和測試服務,以為您的 AngularJS 應用程式建立基礎**
## 本書介紹
- 了解服務如何成為 AngularJS 框架的重要組件,以及如何利用服務來提升您的應用程式效能
- 設計和結構您的 AngularJS 服務,並學習設計 AngularJS 服務的最佳實踐
- 有效地撰寫、測試,並最終部署您的應用程式
## 本書適合誰
如果您是一位中階 JavaScript 開發者,想要增強對單頁網頁應用程式開發的理解,並專注於 AngularJS 服務,那麼這本書適合您。
## 您將學到什麼
- 撰寫 Jasmine 測試案例以測試您的 AngularJS 服務
- 實作可供控制器、指令和其他服務在您的應用程式中使用的共通功能
- 建立服務以在外部伺服器上創建、檢索、更新和刪除您的應用程式數據
- 將第三方 JavaScript 函式庫整合到您的 AngularJS 應用程式中
- 將業務邏輯移至客戶端,以建立新類型的無伺服器應用程式
- 優化您的 AngularJS 應用程式以達到最佳性能
## 詳細內容
本書提供您創建 AngularJS 服務所需的技能和最佳實踐。它從服務的基本概念及其在典型 AngularJS 應用程式中的角色開始。您將通過使用服務的各個應用程式層來開發一個實際的應用程式,然後進一步創建提供跨切關注點的服務,例如消息傳遞、日誌記錄和身份驗證。
接下來,本書涵蓋提供數據訪問的服務,向您展示如何與外部雲端數據服務互動,以及如何在客戶端緩存數據以減少網絡延遲。本書還將向您展示如何撰寫利用其他雲端服務的服務,以創建混合應用程式,並在不撰寫大量代碼的情況下將功能納入您的應用程式。
您還將學習如何創建業務邏輯對象、規則引擎和有限狀態機,這些都可以用來為您的應用程式提供業務邏輯。