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

ngAnimate 1.4 Refactor #11336

Closed
wants to merge 1 commit 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
11 changes: 10 additions & 1 deletion angularFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@ var angularFiles = {

'angularModules': {
'ngAnimate': [
'src/ngAnimate/animate.js'
'src/ngAnimate/shared.js',
'src/ngAnimate/animateChildrenDirective.js',
'src/ngAnimate/animateCss.js',
'src/ngAnimate/animateCssDriver.js',
'src/ngAnimate/animateJs.js',
'src/ngAnimate/animateJsDriver.js',
'src/ngAnimate/animateQueue.js',
'src/ngAnimate/animateRunner.js',
'src/ngAnimate/animation.js',
'src/ngAnimate/module.js'
],
'ngCookies': [
'src/ngCookies/cookies.js',
Expand Down
8 changes: 8 additions & 0 deletions css/angular.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,11 @@
ng\:form {
display: block;
}

.ng-animate-shim {
visibility:hidden;
}

.ng-animate-anchor {
position:absolute;
}
2 changes: 1 addition & 1 deletion docs/content/api/index.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ or JavaScript callbacks.
{@link ngAnimate#service Services / Factories}
</td>
<td>
Use {@link ngAnimate.$animate $animate} to trigger animation operations within your directive code.
Use {@link ng.$animate $animate} to trigger animation operations within your directive code.
</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions docs/content/guide/animations.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ The table below explains in detail which animation events are triggered
| {@link ng.directive:ngClass#animations ngClass or &#123;&#123;class&#125;&#125;} | add and remove |
| {@link ng.directive:ngShow#animations ngShow & ngHide} | add and remove (the ng-hide class value) |

For a full breakdown of the steps involved during each animation event, refer to the {@link ngAnimate.$animate API docs}.
For a full breakdown of the steps involved during each animation event, refer to the {@link ng.$animate API docs}.

## How do I use animations in my own directives?

Expand All @@ -276,6 +276,6 @@ myModule.directive('my-directive', ['$animate', function($animate) {

## More about animations

For a full breakdown of each method available on `$animate`, see the {@link ngAnimate.$animate API documentation}.
For a full breakdown of each method available on `$animate`, see the {@link ng.$animate API documentation}.

To see a complete demo, see the {@link tutorial/step_12 animation step within the AngularJS phonecat tutorial}.
4 changes: 4 additions & 0 deletions src/AngularPublic.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
$AnchorScrollProvider,
$AnimateProvider,
$$CoreAnimateQueueProvider,
$$CoreAnimateRunnerProvider,
$BrowserProvider,
$CacheFactoryProvider,
$ControllerProvider,
Expand Down Expand Up @@ -217,6 +219,8 @@ function publishExternalAPI(angular) {
$provide.provider({
$anchorScroll: $AnchorScrollProvider,
$animate: $AnimateProvider,
$$animateQueue: $$CoreAnimateQueueProvider,
$$AnimateRunner: $$CoreAnimateRunnerProvider,
$browser: $BrowserProvider,
$cacheFactory: $CacheFactoryProvider,
$controller: $ControllerProvider,
Expand Down
2 changes: 1 addition & 1 deletion src/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ function setupModuleLoader(window) {
*
*
* Defines an animation hook that can be later used with
* {@link ngAnimate.$animate $animate} service and directives that use this service.
* {@link $animate $animate} service and directives that use this service.
*
* ```js
* module.animation('.animation-name', function($inject1, $inject2) {
Expand Down
Loading