We use the Angular Http client to communicate with a server using a familiar HTTP request/response protocol. The Http client is one of a family of services in the Angular HTTP library. Before we can use the Http client , we'll have to register it as a service provider with the dependency injection system. Now our goal here is setting up for HTTP data retrieval.
- [Instructor] When handling data with our data service,…we're most likely going to be using the HTTP protocol,…so let's go ahead and set up our application…to start implementing it.…The first thing that we're going to want to do is…to open up our app.component.ts file.…So, that is in the root of the app folder.…And next we'll want to import HTTP providers.…Next we can go ahead and add it to the providers on line 13.…Now, in order to use reactive extensions,…we're gonna go ahead…and have to import that also in this file.…
So, at the very top,…let's go ahead and add an import statement…for rxjs/Rx, and that will allow it…to load all its features associated with it.…Now we're ready to actually send our first HTTP request.…That's up next.…
- Creating components
- Bootstrapping components
- Working with templates
- Using directives and interpolation
- Binding and transforming data
- Creating advanced and nested components
- Creating services
- Obtaining data with HTTP calls
- Configuring routes
Skill Level Intermediate
1. Course Overview
3. Directives, Interpolation, and Templates
5. Advanced Components
7. Obtaining Data with HTTP
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.