Find out how to fix common errors in your Angular 2 application caused by restructuring your project files.
- [Instructor] Let's confirm our new Angular project…is wired together correctly…before adding tests to our application.…We start by navigating to the root of our project…in the terminal using the cd command.…I'll type cd and drag the folder I want…from the finder into the terminal window.…We can confirm our location with the pwd command…and I'll clear the screen.…Next, we'll launch a development server…using the ng serve command…which will compile our code,…check for errors…and watch for changes.…
It looks like we have our first error.…In this case, Angular-CLI…is telling us it can't find our Bootstrap code.…This error happens when Angular-CLI…can't find the App module…in our main.ts file.…To fix this error,…we'll need to update the location…of our App module in the main.ts file.…We'll open our project in Visual Studio Code,…navigate to the main.ts file,…and update the location of our App module…to point to ./app/app.module.…
We'll save our changes…and go back to the terminal.…We'll launch the ng serve command again if needed…
- 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.