- 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.
- Microsoft Application Virtualization Cookbook
- Android開發(fā)精要
- Designing Hyper-V Solutions
- Python應(yīng)用輕松入門
- Kali Linux Wireless Penetration Testing Beginner's Guide(Third Edition)
- Java應(yīng)用開發(fā)技術(shù)實(shí)例教程
- 網(wǎng)絡(luò)爬蟲原理與實(shí)踐:基于C#語言
- 碼上行動(dòng):用ChatGPT學(xué)會(huì)Python編程
- Building Serverless Applications with Python
- Access 2010數(shù)據(jù)庫應(yīng)用技術(shù)(第2版)
- Kotlin開發(fā)教程(全2冊(cè))
- 代碼閱讀
- 從零開始學(xué)Unity游戲開發(fā):場(chǎng)景+角色+腳本+交互+體驗(yàn)+效果+發(fā)布
- 大話代碼架構(gòu):項(xiàng)目實(shí)戰(zhàn)版
- C語言從入門到精通(視頻實(shí)戰(zhàn)版)