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

Commit 02d79fb

Browse files
committed
feat($animate): complete refactor of internal animation code
1 parent d8d30ce commit 02d79fb

40 files changed

+9780
-7669
lines changed

angularFiles.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,16 @@ var angularFiles = {
8787

8888
'angularModules': {
8989
'ngAnimate': [
90-
'src/ngAnimate/animate.js'
90+
'src/ngAnimate/shared.js',
91+
'src/ngAnimate/animateChildrenDirective.js',
92+
'src/ngAnimate/animateCss.js',
93+
'src/ngAnimate/animateCssDriver.js',
94+
'src/ngAnimate/animateJs.js',
95+
'src/ngAnimate/animateJsDriver.js',
96+
'src/ngAnimate/animateQueue.js',
97+
'src/ngAnimate/animateRunner.js',
98+
'src/ngAnimate/animation.js',
99+
'src/ngAnimate/module.js'
91100
],
92101
'ngCookies': [
93102
'src/ngCookies/cookies.js',

css/angular.css

+8
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,11 @@
99
ng\:form {
1010
display: block;
1111
}
12+
13+
.ng-animate-shim {
14+
visibility:hidden;
15+
}
16+
17+
.ng-animate-anchor {
18+
position:absolute;
19+
}

docs/content/api/index.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ or JavaScript callbacks.
140140
{@link ngAnimate#service Services / Factories}
141141
</td>
142142
<td>
143-
Use {@link ngAnimate.$animate $animate} to trigger animation operations within your directive code.
143+
Use {@link ng.$animate $animate} to trigger animation operations within your directive code.
144144
</td>
145145
</tr>
146146
<tr>

docs/content/guide/animations.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ The table below explains in detail which animation events are triggered
253253
| {@link ng.directive:ngClass#animations ngClass or &#123;&#123;class&#125;&#125;} | add and remove |
254254
| {@link ng.directive:ngShow#animations ngShow & ngHide} | add and remove (the ng-hide class value) |
255255

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

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

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

277277
## More about animations
278278

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

281281
To see a complete demo, see the {@link tutorial/step_12 animation step within the AngularJS phonecat tutorial}.

modalContent.html

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div>
2+
Content
3+
<div class="loader" ng-show="!media.loaded">
4+
Loading
5+
</div>
6+
</div>

src/AngularPublic.js

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
5858
$AnchorScrollProvider,
5959
$AnimateProvider,
60+
$$CoreAnimateQueueProvider,
61+
$$CoreAnimateRunnerProvider,
62+
$$AnimateClassResolverProvider,
6063
$BrowserProvider,
6164
$CacheFactoryProvider,
6265
$ControllerProvider,
@@ -217,6 +220,9 @@ function publishExternalAPI(angular) {
217220
$provide.provider({
218221
$anchorScroll: $AnchorScrollProvider,
219222
$animate: $AnimateProvider,
223+
$$animateQueue: $$CoreAnimateQueueProvider,
224+
$$AnimateRunner: $$CoreAnimateRunnerProvider,
225+
$$animateClassResolver: $$AnimateClassResolverProvider,
220226
$browser: $BrowserProvider,
221227
$cacheFactory: $CacheFactoryProvider,
222228
$controller: $ControllerProvider,

src/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function setupModuleLoader(window) {
218218
*
219219
*
220220
* Defines an animation hook that can be later used with
221-
* {@link ngAnimate.$animate $animate} service and directives that use this service.
221+
* {@link $animate $animate} service and directives that use this service.
222222
*
223223
* ```js
224224
* module.animation('.animation-name', function($inject1, $inject2) {

0 commit comments

Comments
 (0)