Course Image

AngularJS Services In-Depth

Angular JS

Learn about services in AngularJS - an important concept to learn when building client side applications in AngularJS. Learn how to create services, as well as use the existing out-of-the-box services that come with Angular.

Start Course

This course covers:

  • Learning what AngularJS services are and how to use them
  • Building an application using services
  • Understanding the different types of services - value, constant, factory and service
  • Making REST API calls using the $http service
  • Understanding promises and writing ansynchronous programming using promises

UNIT

02

Rest API calls and Promises

Learn how to make REST API calls in Angular to interact with an API backend. Make an HTTP request with $http service and work with promises in AngularJS.

Running a fake REST API 6 minutes
$http 2 minutes
Asyc JavaScript and callbacks 8 minutes
Promises 4 minutes

UNIT

03

Building the application

Now let's apply the concepts we've learned into building REST API call interactions in the Contact Application. We'll implement GET, PUT and POST requests.

REST API from service 9 minutes
Saving updated data using PUT 14 minutes
Handling success messaging 8 minutes
Handling HTTP Errors 5 minutes
Adding data using POST 11 minutes
Course Summary 1 minute

Downloads