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

Side by Side Diff: third_party/pkg/angular/lib/directive/ng_control.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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.directive;
2
3 abstract class NgControl {
4 static const NG_VALID_CLASS = "ng-valid";
5 static const NG_INVALID_CLASS = "ng-invalid";
6 static const NG_PRISTINE_CLASS = "ng-pristine";
7 static const NG_DIRTY_CLASS = "ng-dirty";
8
9 String _name;
10 bool _dirty;
11 bool _pristine;
12 bool _valid;
13 bool _invalid;
14
15 get element => null;
16
17 get name => _name;
18 set name(name) => _name = name;
19
20 get pristine => _pristine;
21 set pristine(value) {
22 _pristine = true;
23 _dirty = false;
24
25 element.classes.remove(NG_DIRTY_CLASS);
26 element.classes.add(NG_PRISTINE_CLASS);
27 }
28
29 get dirty => _dirty;
30 set dirty(value) {
31 _dirty = true;
32 _pristine = false;
33
34 element.classes.remove(NG_PRISTINE_CLASS);
35 element.classes.add(NG_DIRTY_CLASS);
36 }
37
38 get valid => _valid;
39 set valid(value) {
40 _invalid = false;
41 _valid = true;
42
43 element.classes.remove(NG_INVALID_CLASS);
44 element.classes.add(NG_VALID_CLASS);
45 }
46
47 get invalid => _invalid;
48 set invalid(value) {
49 _valid = false;
50 _invalid = true;
51
52 element.classes.remove(NG_VALID_CLASS);
53 element.classes.add(NG_INVALID_CLASS);
54 }
55
56 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/directive/module.dart ('k') | third_party/pkg/angular/lib/directive/ng_events.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698