Find out how to add REST requests to your Angular 2 application to get and set data in a CouchDB database.
- Let's add methods to our web storage service,…that allow users to save the current filter state…to our couch DB database.…We start by creating a new import statement at the top…of our web storage service file, and importing the http…class from the angular/http module.…We'll also need to import the http module class into our…app module file, which gives our entire application…access to the necessary rest services we need…to communicate with our server.…
We do this by opening the app module file,…and creating a new import statement, importing…the http module class from angular/http.…We'll also need to add the http module class to our list…of imports in the NG module decorator.…Back on our web storage service file, we'll instantiate…the http class, in a constructor function, by typing…a new line, followed by constructor, and between the…parentheses, we'll type private http, and set it…to the http class type.…
We'll then create a new method called getRemote,…which will use the http instance to get the filter state…
- Analyzing Angular 2 error messages
- Identifying the causes of common error messages
- Preventing common errors with custom error handling
- Analyzing testing reports
- Reviewing common testing report errors and their likely causes
Skill Level Intermediate
Angular 2 Essential Trainingwith Justin Schwartzenberger2h 48m Intermediate
Angular 2: Widget-Based Architectureswith Derek Peruo52m 18s Intermediate
1. Getting Started
Application overview1m 49s
2. How Angular 2 Reports Errors
Error handling in Angular1m 21s
3. Common Angular 2 Errors
4. Testing Angular 2 Applications
- 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.