Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Angular JS - Service


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.





This post first appeared on Frontend Skills, please read the originial post: here

Share the post

Angular JS - Service

×

Subscribe to Frontend Skills

Get updates delivered right to your inbox!

Thank you for your subscription

×