This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree 4 files changed +28
-7
lines changed
4 files changed +28
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ packages:
4
4
analyzer:
5
5
description: analyzer
6
6
source: hosted
7
- version: "0.13.6 "
7
+ version: "0.18.0 "
8
8
angular:
9
9
description:
10
10
path: ".."
@@ -26,23 +26,23 @@ packages:
26
26
code_transformers:
27
27
description: code_transformers
28
28
source: hosted
29
- version: "0.1.3 "
29
+ version: "0.1.6 "
30
30
collection:
31
31
description: collection
32
32
source: hosted
33
33
version: "0.9.2"
34
34
di:
35
35
description: di
36
36
source: hosted
37
- version: "1.1.0 "
37
+ version: "2.0.1 "
38
38
html5lib:
39
39
description: html5lib
40
40
source: hosted
41
41
version: "0.10.0"
42
42
intl:
43
43
description: intl
44
44
source: hosted
45
- version: "0.9.9 "
45
+ version: "0.8.10+4 "
46
46
logging:
47
47
description: logging
48
48
source: hosted
@@ -51,6 +51,10 @@ packages:
51
51
description: matcher
52
52
source: hosted
53
53
version: "0.10.0"
54
+ meta:
55
+ description: meta
56
+ source: hosted
57
+ version: "0.8.8"
54
58
mock:
55
59
description: mock
56
60
source: hosted
@@ -75,6 +79,10 @@ packages:
75
79
description: stack_trace
76
80
source: hosted
77
81
version: "0.9.3+1"
82
+ typed_mock:
83
+ description: typed_mock
84
+ source: hosted
85
+ version: "0.0.4"
78
86
unittest:
79
87
description: unittest
80
88
source: hosted
Original file line number Diff line number Diff line change 6
6
< li > < a href ="hello_world.html "> hello_world.html</ a > </ li >
7
7
< li > < a href ="todo.html "> todo.html</ a > </ li >
8
8
< li > < a href ="shadow_dom_components.html "> shadow_dom_components.html</ a > </ li >
9
- < li > < a href ="paper_progress .html "> paper_progress .html</ a > </ li >
9
+ < li > < a href ="paper .html "> paper .html</ a > </ li >
10
10
</ ul >
11
11
</ body >
12
12
</ html >
File renamed without changes.
Original file line number Diff line number Diff line change 10
10
<!-- 2. Use an HTML Import to bring in the element. -->
11
11
< link rel ="import "
12
12
href ="bower_components/paper-progress/paper-progress.html ">
13
- < script type ="application/dart " src ="paper_progress.dart "> </ script >
13
+ < link rel ="import "
14
+ href ="bower_components/paper-checkbox/paper-checkbox.html ">
15
+ < script type ="application/dart " src ="paper.dart "> </ script >
14
16
< script src ="packages/browser/dart.js "> </ script >
15
17
< style >
16
18
div { padding : 0.25em ; }
17
19
</ style >
18
20
</ head >
19
21
< body >
20
- < h2 > A quick demo of the Polymer paper-progress widget in an AngularDart app.</ h2 >
22
+ < h1 > Polymer components inside a AngularDart app</ h1 >
23
+ < h2 > paper-progress</ h2 >
24
+ < p > This is a simple component that doesn't generate events; the only things that is required is property binding</ p >
21
25
< p > The max ({{max}}) and value ({{curValue}}) properties are bound through bind-* semantics</ p >
22
26
23
27
< p > Text from Angular: < b > {{text}}</ b > </ p >
@@ -32,5 +36,14 @@ <h2>A quick demo of the Polymer paper-progress widget in an AngularDart app.</h2
32
36
< input type ="text " ng-model ="curValue ">
33
37
</ label >
34
38
</ p >
39
+
40
+ < h2 > paper-checkbox</ h2 >
41
+ < p > The checkbox will generate an event every time the value is changed</ p >
42
+ < p > AngularDart can listen to these events through the on-* syntax</ p >
43
+
44
+ < div >
45
+ < paper-checkbox on-change ="curValue = (curValue * 1.02) "> </ paper-checkbox >
46
+ </ div >
47
+ < p > Every the value changes, the curValue ({{curValue}}) scope variable is multiplied by 1.02</ p >
35
48
</ body >
36
49
</ html >
You can’t perform that action at this time.
0 commit comments