OLD | NEW |
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
2 <link rel="import" href="curly_block.html"> | 2 <link rel="import" href="curly_block.html"> |
3 <link rel="import" href="observatory_element.html"> | 3 <link rel="import" href="observatory_element.html"> |
4 <link rel="import" href="service_ref.html"> | 4 <link rel="import" href="service_ref.html"> |
5 | 5 |
6 <polymer-element name="context-ref" extends="service-ref"> | 6 <polymer-element name="context-ref" extends="service-ref"> |
7 <template> | 7 <template> |
8 <link rel="stylesheet" href="css/shared.css"> | 8 <link rel="stylesheet" href="css/shared.css"> |
9 <span> | 9 <span> |
10 <a on-click="{{ goto }}" _href="{{ url }}"><em>Context</em> ({{ ref.length
}})</a> | 10 <a on-click="{{ goto }}" _href="{{ url }}"><em>Context</em> ({{ ref.length
}})</a> |
11 <curly-block callback="{{ expander() }}"> | 11 <curly-block callback="{{ expander() }}"> |
12 <div class="memberList"> | 12 <div class="memberList"> |
13 <div class="memberItem"> | 13 <div class="memberItem"> |
14 <div class="memberName">parent</div> | 14 <div class="memberName">parent</div> |
15 <div class="memberValue"> | 15 <div class="memberValue"> |
16 <any-service-ref ref="{{ ref.parentContext }}"></any-service-ref> | 16 <any-service-ref ref="{{ ref.parentContext }}"></any-service-ref> |
17 </div> | 17 </div> |
18 </div> | 18 </div> |
19 <template repeat="{{ variable in ref.variables }}"> | 19 <template repeat="{{ index in ref.variables.asMap().keys }}"> |
20 <div class="memberItem"> | 20 <div class="memberItem"> |
21 <div class="memberName">[{{ variable['index']}}]</div> | 21 <div class="memberName">[{{ index }}]</div> |
22 <div class="memberValue"> | 22 <div class="memberValue"> |
23 <any-service-ref ref="{{ variable['value'] }}"></any-service-ref
> | 23 <any-service-ref ref="{{ ref.variables[index]['value'] }}"> |
| 24 </any-service-ref> |
24 </div> | 25 </div> |
25 </div> | 26 </div> |
26 </template> | 27 </template> |
27 </div> | 28 </div> |
28 </curly-block> | 29 </curly-block> |
29 </span> | 30 </span> |
30 </template> | 31 </template> |
31 </polymer-element> | 32 </polymer-element> |
32 | 33 |
33 <script type="application/dart" src="context_ref.dart"></script> | 34 <script type="application/dart" src="context_ref.dart"></script> |
OLD | NEW |