Find out how to use the Angular 2 command-line tool to quickly start a new Angular 2 project.
- [Instructor] Let's Scaffold a new Angular project…so that we can cleanly add tests…to our existing application.…In the terminal, we navigate to the parent folder…of our application by typing cd…and the path to the folder we want to get to.…An easy way to do that, is to drag the folder…into the terminal.…We can confirm our new location…with the pwd command,…clear the screen, and now we can make a new Angular project…by typing ng new followed by the name of our new project.…
You can call your project whatever you'd like.…I'll call mine user-list-app.…Angular CLI will create a new folder…using the name of your project,…populating it with a basic app module…and downloading the necessary NPM dependencies.…We can confirm the new project works correctly…by navigating into the project in our terminal…and launching a development server…using the NG Serve command.…Angular CLI will compile our code and check for errors.…We can then open our browser and navigate…to locahost port 4200.…
Seeing the app works! message in the browser…
- 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 45m 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.