A service is essentially a small piece of code that performs simple tasks, such as allowing you to access external data. Once you learn this simple technique, you will be able to easily get data into your application. This online video tutorial will teach you how to use the $http service to read a JSON file in AngularJS.
- View Offline
In this case we're interested in a particular service and it's called HTTP.…Now the job of this service is to…handle communications between an http server and your application.…It's pretty easy to use.…So here's what we're going to do.…We're going to take all this data away from this variable.…So I'm just going to grab all this and delete it.…And then we're going to use our HTTPservice.…All we have to do is add it right next to the scope on the controller.…It's also dollar sign http.…
- What is AngularJS?
- Working with complex models
- Using a the $http service to read a JSON file
- Binding data
- Dividing your app into partials
- Creating a details template
- Using AngularJS animation events