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

Unified Diff: third_party/pkg/route_hierarchical/example/full/company-info.html

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: third_party/pkg/route_hierarchical/example/full/company-info.html
diff --git a/third_party/pkg/route_hierarchical/example/full/company-info.html b/third_party/pkg/route_hierarchical/example/full/company-info.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6dc371aa8075153d3e0b46e8f0879c11ef94fa1
--- /dev/null
+++ b/third_party/pkg/route_hierarchical/example/full/company-info.html
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ </head>
+ <body>
+ <element name="x-company-info" constructor="CompanyInfoComponent" extends="div">
+ <template>
+ <ul class="nav nav-pills">
+ <li class="{{activeClass('info')}}">
+ <a href="{{infoUrl}}">Info</a>
+ </li>
+ <li class="{{activeClass('activities')}}">
+ <a href="{{activitiesUrl}}">Activities</a>
+ </li>
+ <li class="{{activeClass('notes')}}">
+ <a href="{{notesUrl}}">Notes</a>
+ </li>
+ </ul>
+ <template if="section == 'info'">
+ <h2>{{company['name']}}: Info</h2>
+ <p>id: {{company['id']}}</p>
+ <p>revenue: {{company['revenue']}}</p>
+ </template>
+ <template if="section == 'activities'">
+ <h2>{{company['name']}}: Activities</h2>
+ <ul>
+ <li>a</li>
+ <li>b</li>
+ <li>c</li>
+ <li>d</li>
+ <li>e</li>
+ <li>f</li>
+ <li>g</li>
+ </ul>
+ </template>
+ <template if="section == 'notes'">
+ <h2>{{company['name']}}: Notes</h2>
+ <textarea></textarea><br/>
+ <button class="btn btn-primary">Add Note</button>
+ </template>
+ <script type="application/dart" src="company-info.dart"></script>
+ </template>
+ </element>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698