In this video, discover how to add directives to your routing in order to display a new view to the user in the case that the page does not exist and delivers a 404 error.
(upbeat music) … - [Instructor] One way to create a 404 error route view … is of course to simply use Angular's routing mechanism, … so here's the way I went about doing this. … Inside of my routes folder, … I created a new file called notfound.components.ts. … Within here, I simply gave it a header … in my template for 404 error page not found … and then, a little message inside of the body of the view, … which says the page does not exist. … We export NotFoundComponent … and if we go to app.module.ts, … we also import NotFoundComponent … from routes/notfound.component, … just like we do any of the other … route views that we're using. … Far to the bottom of our route stack, … we look to see double wildcard path … and the component we serve up … is of course NotFoundComponent. … We'll have a look now at how this works within our project. … Here, we have our project and we have our basic routes here. … However, if I mistype something, … there we go, 404 page not found. … …
- Installing the Angular CLI
- Creating a new project
- Verifying the animations package
- Configuring project routes
- Animating components
- Triggering animation between states
- Stepped and parallel animation
- Writing reusable animations
- Animating individual items with query and stagger
- Animating an existing Angular project
Skill Level Intermediate
1. Getting Ready to Animate
2. Enabling Angular Animations
3. Angular Animation Basics
4. Advanced Angular Animation
5. Animating an Existing Interface
6. Package for Distribution
Building the project1m 56s
- 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.