Find out how to fix common errors in your Angular 2 application caused by data transformation issues.
- [Narrator] Let's update our user list component…to get the current filter state…from our database on page load.…We do this by creating a new line…in our ngOnInit method,…and typing this.xyzWebStorageService.getRemote.subscribe.…The subscribe method returns a response object…which we'll assign to a new this.settings variable…here in our component like so.…We'll also need to declare our new settings variable.…
We do this now by going to the top of our class…and typing settings…and assigning it to an object.…The opening and closing brackets declare…our new settings variable as an object.…This object will always have four properties,…all of them strings.…The filter property is where we'll store the filter state…in our database.…_id, _rev and rev without the underscore…are internal properties specific to CouchDB.…The underscore id property is a unique record id assigned…by CouchDB and the two rev properties…are unique revision numbers used by CouchDB…to correctly update database records.…
If we go back to our ngOnInit method,…
- 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.