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