You’ve already set up routes for the application and have a set of navigation elements to control them. At present, the router views simply appear and disappear without any transition whatsoever. Angular 4.2 and above allows the actual animation of routers supporting much of the same structures you’ve seen previously, but as one would imagine, routers require an additional set of structures to use effective animated transitions between them.
- [Narrator] We've already set up routes for our application…and have a set of navigation elements to control them.…At present, the router views simply…appear and disappear without any transition whatsoever.…Angular 4.2 and above allows the actual animation of routers…supporting much of the same…structures we've seen previously.…But as one would imagine, routers require an additional…set of structures to use effective…animated transitions between them.…The first thing we need to do is add some data to our roots.…
So inside of our animation roots constant,…with an app.module.…Right after our component definition…for each one of these routes,…we're going to pass in some data.…I have a little snippet here I'll paste in,…and this is data which contains an animation object…which has a property called value set to a string.…We're going to make this string match…whatever's after the dash here, it doesn't have to,…but it makes sense for our purposes.…
So for instance, inside my animation basics…I'm just going to change the value to basics.…
- 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.