What is a Service?
A service is basically a typescript function which can perform a single functionality.
It is a functionality which needs to implement commonly in across multiple modules so basically making it reusable code which reduces code duplicity.
Services can be best used to create, update and delete data in angular.
One of the main purposes of using services in angular is enforce separation of concerns.
0 comments:
Post a Comment