- Expert Angular
- Mathieu Nayrolles Rajesh Gunasundaram Sridhar Rao
- 116字
- 2021-07-15 17:05:29
Services
Services are user-defined classes used to solve problems. Angular recommends only having template-specific codes in components. A component's responsibility is to enrich the UI/UX in the Angular application and delegate business logic to services. Components are consumers of services:

Application-specific or business logic such as persisting application data, logging errors, and file storage should be delegated to services, and components should consume the respective services to deal with the appropriate business or application-specific logic:

For example, we can have a service called BookService that deals with inserting new books, editing or deleting existing books, and fetching a list of all the books available.
We will see more about services in Chapter 11, Implementing Angular Pipes.
- Visual C++程序設計教程
- Mobile Web Performance Optimization
- 新一代通用視頻編碼H.266/VVC:原理、標準與實現
- 程序員數學:用Python學透線性代數和微積分
- Learning ASP.NET Core 2.0
- 假如C語言是我發明的:講給孩子聽的大師編程課
- Blender 3D Incredible Machines
- PhoneGap Mobile Application Development Cookbook
- 從零開始學C語言
- HTML 5與CSS 3權威指南(第3版·上冊)
- TMS320LF240x芯片原理、設計及應用
- R語言數據可視化:科技圖表繪制
- 會當凌絕頂:Java開發修行實錄
- Java高并發編程詳解:深入理解并發核心庫
- SFML Game Development