Most animations in Angular are driven through changes in a defined state from within the parent component of the component instance about to be animated. In this case, the component instance exists within the basic component view, and that is where you define your stateful data values. While the stateful data created is not yet shared through to your child component, you can now easily switch these values through the established user controls.
- [Instructor] Most animations in Angular…are driven through changes in a defined state…from within the parent component,…of the component instance about to be animated.…The component instance, in this case,…exists within our basic component view,…and that is where we'll define our stateful data values.…So here is the animbox component instance.…It's in one column.…This other column that we've had prepared…is going to exist for some buttons we can click…to actually change state.…
I'm going to paste in a snippet…from our snippets file,…and just perform some tabbing on there.…So you can see here what we're doing is…leveraging Bootstrap once again…to create a button group.…Within that button group are two links…that are being styled as buttons,…and the important bit when it comes to Angular animations…are these right here.…So we're using an Angular click,…and invoking a function called set state.…
And then we pass in a string representative…of the state we want.…So I'm setting one state to original,…and one state to basic.…
- 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.