To use animations within Angular, you first need to import the correct module within your AppModule class and include it within the application. With the BrowserAnimationsModule imported and properly declared, you can make use of it within the application.
- [Instructor] To use animations within Angular…we first need to import the correct module…within our app module class…and include within our application.…So let's open up app.module…and we can see here that there's a number of things…already being imported, such as BrowserModule,…and Ngmodule.…We also have our main application component.…And as these are imported, they're also matched…with various declarations and imports…across the app.…
What we need to do is make the animations package…available for our application through this module.…So to do so,…I'm going to paste in a snippet here,…which imports BroswerAnimationsModule…from angular/platform-browser/animations.…Now even though we're importing it,…it's not quite available for use yet,…because we need to add it to our actual imports.…
So inside of our imports array,…we'll just paste that right there, BrowserAnimationsModule…alongside of BrowserModule.…And then save our app.module.…Now this is only compiling successfully,…because inside of our package.json file,…
- 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.