Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

docs: cleanup of directive animation classes #12670

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ng/directive/ngClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ function classDirective(name, selector) {
* new classes added.
*
* @animations
* **add** - happens just before the class is applied to the elements
* `.ng-add` - happens just before the class is applied to the elements
*
* **remove** - happens just before the class is removed from the element
* `.ng-remove` - happens just before the class is removed from the element
*
* @element ANY
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
Expand Down
5 changes: 3 additions & 2 deletions src/ng/directive/ngIf.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
* and `leave` effects.
*
* @animations
* enter - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container
* leave - happens just before the `ngIf` contents are removed from the DOM
* `.ng-enter` - happens just after the `ngIf` contents change and a new DOM element is created and injected into the `ngIf` container
*
* `.ng-leave` - happens just before the `ngIf` contents are removed from the DOM
*
* @element ANY
* @scope
Expand Down
5 changes: 3 additions & 2 deletions src/ng/directive/ngInclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
* access on some browsers.
*
* @animations
* enter - animation is used to bring new content into the browser.
* leave - animation is used to animate existing content away.
* `.ng-enter` - animation is used to bring new content into the browser
*
* `.ng-leave` - animation is used to animate existing content away
*
* The enter and leave animation occur concurrently.
*
Expand Down
6 changes: 3 additions & 3 deletions src/ng/directive/ngRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@
* as **data-ng-repeat-start**, **x-ng-repeat-start** and **ng:repeat-start**).
*
* @animations
* **.enter** - when a new item is added to the list or when an item is revealed after a filter
* `.ng-enter` - when a new item is added to the list or when an item is revealed after a filter
*
* **.leave** - when an item is removed from the list or when an item is filtered out
* `.ng-leave` - when an item is removed from the list or when an item is filtered out
*
* **.move** - when an adjacent item is filtered out causing a reorder or when the item contents are reordered
* `.ng-move` - when an adjacent item is filtered out causing a reorder or when the item contents are reordered
*
* @element ANY
* @scope
Expand Down
4 changes: 2 additions & 2 deletions src/ng/directive/ngShowHide.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ var NG_HIDE_IN_PROGRESS_CLASS = 'ng-hide-animate';
* property to block during animation states--ngAnimate will handle the style toggling automatically for you.
*
* @animations
* addClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible
* removeClass: `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden
* `.ng-hide` - happens after the `ngShow` expression evaluates to a truthy value and the just before contents are set to visible
* `.ng-hide` - happens after the `ngShow` expression evaluates to a non truthy value and just before the contents are set to hidden
*
* @element ANY
* @param {expression} ngShow If the {@link guide/expression expression} is truthy
Expand Down
5 changes: 3 additions & 2 deletions src/ng/directive/ngSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@
* </div>

* @animations
* enter - happens after the ngSwitch contents change and the matched child element is placed inside the container
* leave - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
* `.ng-enter` - happens after the ngSwitch contents change and the matched child element is placed inside the container
*
* `.ng-leave` - happens just after the ngSwitch contents change and just before the former contents are removed from the DOM
*
* @usage
*
Expand Down
5 changes: 3 additions & 2 deletions src/ngRoute/directive/ngView.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
* Requires the {@link ngRoute `ngRoute`} module to be installed.
*
* @animations
* enter - animation is used to bring new content into the browser.
* leave - animation is used to animate existing content away.
* `.ng-enter` - animation is used to bring new content into the browser
*
* `.ng-leave` - animation is used to animate existing content away
*
* The enter and leave animation occur concurrently.
*
Expand Down