AngularJS Services (in-depth)
Video Lectures
Displaying all 19 video lectures.
Lecture 1![]() 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![]() 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![]() 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![]() Play Video |
Value service Let's look at the first of the Angular constructs to share data - The value service. |
Lecture 5![]() Play Video |
Constant Service and sharing functions Now let's look at the constant service and how to use it. |
Lecture 6![]() 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![]() Play Video |
The Service service This tutorial examines the very confusingly names 'service' service. We'll write such a service now. |
Lecture 8![]() 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![]() 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![]() 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![]() Play Video |
$http This tutorial introduces the $http service. Learn how to use the service to make HTTP calls. |
Lecture 12![]() Play Video |
Asyc JavaScript and callbacks Let's understand how async calls work in Javascript and the problem of callbacks. |
Lecture 13![]() 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![]() 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![]() 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![]() 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![]() 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![]() 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![]() Play Video |
Course Summary Let's wrap up with a quick summary of what we covered in this course. |