Angular services are singleton objects that provide a way to share data, functionality, and logic across different parts of an Angular application (components, module and other services).
They are mostly used for Business Logic, Data Sharing, HTTP Requests and Utility functions.
FREE online Community - / discord
PAID tutoring/training- https://cator.co.za/training
Timestamp
0:00 Angular Service use case
1:07 Example: Problem statement
1:42 Adding Category class
4:04 Update list of Categories ID's
6:30 Using method of an class object
8:45 Singleton & @Injectable decorator
10:05 Scope: Root v Component
11:04 Dependency Injection
11:56 Best practices: 1. Naming
12:32 2. Decoupled service
15:29 3. Service Scopes example
16:14 Recap & Next topic
Watch video Angular Services and Dependency Injection | Part 8 online without registration, duration hours minute second in high quality. This video was added by user Cator 08 June 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6 once and liked it people.