File tree 8 files changed +36
-19
lines changed
8 files changed +36
-19
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,10 @@ function classDirective(name, selector) {
148
148
* new classes added.
149
149
*
150
150
* @animations
151
- * **add** - happens just before the class is applied to the elements
152
- *
153
- * **remove** - happens just before the class is removed from the element
151
+ * | Animation | Occurs |
152
+ * |----------------------------------|-------------------------------------|
153
+ * | {@link ng.$animate#addClass addClass} | just before the class is applied to the element |
154
+ * | {@link ng.$animate#removeClass removeClass} | just before the class is removed from the element |
154
155
*
155
156
* @element ANY
156
157
* @param {expression } ngClass {@link guide/expression Expression } to eval. The result
Original file line number Diff line number Diff line change 34
34
* and `leave` effects.
35
35
*
36
36
* @animations
37
- * enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container
38
- * leave - happens just before the `ngIf` contents are removed from the DOM
37
+ * | Animation | Occurs |
38
+ * |----------------------------------|-------------------------------------|
39
+ * | {@link ng.$animate#enter enter} | just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container |
40
+ * | {@link ng.$animate#leave leave} | just before the `ngIf` contents are removed from the DOM |
39
41
*
40
42
* @element ANY
41
43
* @scope
Original file line number Diff line number Diff line change 23
23
* access on some browsers.
24
24
*
25
25
* @animations
26
- * enter - animation is used to bring new content into the browser.
27
- * leave - animation is used to animate existing content away.
26
+ * | Animation | Occurs |
27
+ * |----------------------------------|-------------------------------------|
28
+ * | {@link ng.$animate#enter enter} | when the expression changes, on the new include |
29
+ * | {@link ng.$animate#leave leave} | when the expression changes, on the old include |
28
30
*
29
31
* The enter and leave animation occur concurrently.
30
32
*
Original file line number Diff line number Diff line change 164
164
* as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
165
165
*
166
166
* @animations
167
- * **.enter** - when a new item is added to the list or when an item is revealed after a filter
168
- *
169
- * **.leave** - when an item is removed from the list or when an item is filtered out
170
- *
171
- * **. move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered
167
+ * | Animation | Occurs |
168
+ * |----------------------------------|-------------------------------------|
169
+ * | { @link ng.$animate#enter .enter} | when a new item is added to the list or when an item is revealed after a filter |
170
+ * | { @link ng.$animate#leave .leave} | when an item is removed from the list or when an item is filtered out |
171
+ * | { @link ng.$animate# move .move } | when an adjacent item is filtered out causing a reorder or when the item contents are reordered |
172
172
*
173
173
* @element ANY
174
174
* @scope
Original file line number Diff line number Diff line change @@ -89,8 +89,10 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
89
89
* property to block during animation states--ngAnimate will handle the style toggling automatically for you.
90
90
*
91
91
* @animations
92
- * addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible
93
- * removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden
92
+ * | Animation | Occurs |
93
+ * |----------------------------------|-------------------------------------|
94
+ * | {@link $animate#addClass addClass} `.ng-hide` | after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible |
95
+ * | {@link $animate#removeClass removeClass} `.ng-hide` | - after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden |
94
96
*
95
97
* @element ANY
96
98
* @param {expression } ngShow If the {@link guide/expression expression} is truthy
Original file line number Diff line number Diff line change 27
27
* </div>
28
28
29
29
* @animations
30
- * enter - happens after the ngSwitch contents change and the matched child element is placed inside the container
31
- * leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
30
+ * | Animation | Occurs |
31
+ * |----------------------------------|-------------------------------------|
32
+ * | {@link ng.$animate#enter enter} enter | after the ngSwitch contents change and the matched child element is placed inside the container |
33
+ * | {@link ng.$animate#leave leave} | after the ngSwitch contents change and just before the former contents are removed from the DOM |
32
34
*
33
35
* @usage
34
36
*
Original file line number Diff line number Diff line change 10
10
*
11
11
* ngAnimateSwap is a animation-oriented directive that allows for the container to
12
12
* be removed and entered in whenever the associated expression changes. A
13
- * common usecase for this directive is a rotating banner component which
13
+ * common usecase for this directive is a rotating banner or slider component which
14
14
* contains one image being present at a time. When the active image changes
15
15
* then the old image will perform a `leave` animation and the new element
16
16
* will be inserted via an `enter` animation.
17
17
*
18
+ * @animations
19
+ * | Animation | Occurs |
20
+ * |----------------------------------|--------------------------------------|
21
+ * | {@link ng.$animate#enter enter} | when the expression changes, on the new element |
22
+ * | {@link ng.$animate#leave leave} | when the expression changes, on the old element |
23
+ *
18
24
* @example
19
25
* <example name="ngAnimateSwap-directive" module="ngAnimateSwapExample"
20
26
* deps="angular-animate.js"
Original file line number Diff line number Diff line change @@ -19,8 +19,10 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
19
19
* Requires the {@link ngRoute `ngRoute`} module to be installed.
20
20
*
21
21
* @animations
22
- * enter - animation is used to bring new content into the browser.
23
- * leave - animation is used to animate existing content away.
22
+ * | Animation | Occurs |
23
+ * |----------------------------------|-------------------------------------|
24
+ * | {@link ng.$animate#enter enter} | when the expression changes, on the new view |
25
+ * | {@link ng.$animate#leave leave} | when the expression changes, on the old view |
24
26
*
25
27
* The enter and leave animation occur concurrently.
26
28
*
You can’t perform that action at this time.
0 commit comments