Question: What is a service in Angular?Answer: In Angular, a service is a singleton object that performs tasks like fetching data, sharing data between components, or encapsulating business logic. Services are used to promote reusability and maintainability.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: