AngularJS Services (in-depth)

Video Lectures

Displaying all 19 video lectures.
Lecture 1
Introduction to Services
Play Video
Introduction to Services
Welcome to this course. This course covers the concept of services in AngularJS 1. We'll learn why services are required and how to create and use services.
Lecture 2
Setting Up
Play Video
Setting Up
Let's set up the necessary programs in our development environment to write and execute code in this course.
Lecture 3
Building the Contacts app
Play Video
Building the Contacts app
We'll start by buildiing a Contact / Phone book application. We'll make changes to this app as we go through this course.
Lecture 4
Value service
Play Video
Value service
Let's look at the first of the Angular constructs to share data - The value service.
Lecture 5
Constant Service and sharing functions
Play Video
Constant Service and sharing functions
Now let's look at the constant service and how to use it.
Lecture 6
Factory Service
Play Video
Factory Service
This tutorial is about the factory service. This is one of the two most commonly used services to share functionality and data.
Lecture 7
The Service service
Play Video
The Service service
This tutorial examines the very confusingly names 'service' service. We'll write such a service now.
Lecture 8
Angular Factory vs Service
Play Video
Angular Factory vs Service
When do you use a factory and when do you use a service? This tutorial answers that question.
Lecture 9
Creating and using Services
Play Video
Creating and using Services
In this tutorial, we'll build services and apply everything we've learnt so far into the Contact App.
Lecture 10
Running a fake REST API
Play Video
Running a fake REST API
We'll now set up a simple REST API backend using a NodeJS program called json-server. That'll help provide a REST endpoint for us to make HTTP calls.
Lecture 11
$http
Play Video
$http
This tutorial introduces the $http service. Learn how to use the service to make HTTP calls.
Lecture 12
Asyc JavaScript and callbacks
Play Video
Asyc JavaScript and callbacks
Let's understand how async calls work in Javascript and the problem of callbacks.
Lecture 13
Promises
Play Video
Promises
This tutorial introduces the concept of promises. We'll look at how they work and how to implement async functionality using the promises pattern.
Lecture 14
REST API from service
Play Video
REST API from service
Let's move the REST API call from the controller into the service and, in the process, figure out how to return and chain promises.
Lecture 15
Saving updated data using PUT
Play Video
Saving updated data using PUT
`Let's implement edit contact functionality and persist the new contact information using a PUT request.
Lecture 16
Handling success messaging
Play Video
Handling success messaging
Let's tackle messaging. In this tutorial, let's implement a success confirmation message on a successful REST API call.
Lecture 17
Handling HTTP Errors
Play Video
Handling HTTP Errors
In this tutorial, we'll handle failure scenarios by implementing a failure message. We'll then simulate the HTTP error scenario to test it out.
Lecture 18
Adding data using POST
Play Video
Adding data using POST
Let's implement the add functionality by showing a form and submitting the contact data using a POST request.
Lecture 19
Course Summary
Play Video
Course Summary
Let's wrap up with a quick summary of what we covered in this course.