Angular JS provides facility to have Built in services as well as Custom Services which can be very helpful feature while developing the application efficiently.
- There are built in services like $http, $location, $log etc.
- We can create our custom services which can be extended to the built in services.
- There are three ways to create custom services i.e. Service, Factory and Provider.
- A special unit of code which can be used across different contorllers.
- It can work with other services
- It is a singleton. Instantiated and same instance maintained throughout the life cycle.
- It can be utility or business logic.