You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+39-2
Original file line number
Diff line number
Diff line change
@@ -256,7 +256,7 @@
256
256
|248|[What are the lifecycle hooks of a zone?](#what-are-the-lifecycle-hooks-of-a-zone)|
257
257
|249|[Which are the methods of NgZone used to control change detection?](#which-are-the-methods-of-ngzone-used-to-control-change-detection)|
258
258
|250|[How do you change the settings of zonejs?](#how-do-you-change-the-settings-of-zonejs)|
259
-
|251|[?](#)|
259
+
|251|[How do you trigger an animation?](#how-do-you-trigger-an-animation)|
260
260
261
261
262
262
1.### What is Angular Framework?
@@ -3746,6 +3746,43 @@
3746
3746
```
3747
3747
**[⬆ Back to Top](#table-of-contents)**
3748
3748
3749
-
251. ### ?
3749
+
251. ### How do you trigger an animation?
3750
+
Angular provides a `trigger()` function for animation in order to collect the states and transitions with a specific animation name, so that you can attach it to the triggering element in the HTML template. This function watch for changes and trigger initiates the actions when a change occurs.
3751
+
For example, let's create trigger named `upDown`, and attach it to the button element.
0 commit comments