Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Side by Side Diff: third_party/pkg/angular/lib/animate/ng_animate.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 part of angular.animate;
2
3 /**
4 * This provides DOM controls for turning animations on and off for individual
5 * dom elements. Valid options are [always] [never] and [auto]. If this
6 * directive is not applied the default value is [auto] for animation.
7 */
8 @Decorator(selector: '[ng-animate]',
9 map: const {'ng-animate': '@option'})
10 class NgAnimate extends AbstractNgAnimate {
11 set option(value) {
12 _option = value;
13 _optimizer.alwaysAnimate(_element, _option);
14 }
15
16 NgAnimate(dom.Element element, AnimationOptimizer optimizer)
17 : super(element, optimizer);
18 }
19
20 /**
21 * This provides DOM controls for turning animations on and off for child
22 * dom elements. Valid options are [always] [never] and [auto]. If this
23 * directive is not applied the default value is [auto] for animation.
24 *
25 * Values provided in [ng-animate] will override this directive since they are
26 * more specific.
27 */
28 @Decorator(selector: '[ng-animate-children]',
29 map: const {'ng-animate-children': '@option'})
30 class NgAnimateChildren extends AbstractNgAnimate {
31 set option(value) {
32 _option = value;
33 _optimizer.alwaysAnimateChildren(_element, _option);
34 }
35
36 NgAnimateChildren(dom.Element element, AnimationOptimizer optimizer)
37 : super(element, optimizer);
38 }
39
40 /**
41 * Base class for directives that control animations with an
42 * [AnimationOptimizer].
43 */
44 abstract class AbstractNgAnimate implements DetachAware {
45 final AnimationOptimizer _optimizer;
46 final dom.Element _element;
47
48 String _option = "auto";
49 String get option => _option;
50 set option(value);
51
52 AbstractNgAnimate(this._element, this._optimizer);
53
54 detach() {
55 _optimizer.detachAlwaysAnimateOptions(_element);
56 }
57 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/animate/module.dart ('k') | third_party/pkg/angular/lib/application.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698