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

Unified Diff: third_party/pkg/route_hierarchical/example/full/portfolio.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/portfolio.html
diff --git a/third_party/pkg/route_hierarchical/example/full/portfolio.html b/third_party/pkg/route_hierarchical/example/full/portfolio.html
new file mode 100644
index 0000000000000000000000000000000000000000..a673da82cb93160c4197243d333b50fee79530f5
--- /dev/null
+++ b/third_party/pkg/route_hierarchical/example/full/portfolio.html
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <link rel="import" href="company-info.html">
+ </head>
+ <body>
+ <element name="x-porfolio" constructor="PortfolioComponent" extends="div">
+ <template>
+ <!-- Tabs header -->
+ <ul class="nav nav-tabs">
+ <template iterate='tab in tabs'>
+ <li class='{{activeClass(tab)}}'>
+ <a href="{{tab['link']}}">{{tab['name']}}</a>
+ </li>
+ </template>
+ </ul>
+ <template if="activeTab == null">
+ Loading...
+ </template>
+ <!-- portfolio home tab -->
+ <template if="activeTab == tabs[0]">
+ <h1>Portfolio</h1>
+ <div class="form-search">
+ <input type="text" class="input-medium search-query" bind-value="searchQuery">
+ <button class="btn" on-click="search()">Search</button>
+ </div><br/>
+ <template if="companies == null">
+ Loading...
+ </template>
+ <template if="companies != null">
+ <table class="table">
+ <tr>
+ <th>#</th>
+ <th>Name</th>
+ <th>Revenue</th>
+ </tr>
+ <tbody template iterate='company in companies'>
+ <tr>
+ <td>{{company['id']}}</td>
+ <td><a href="{{companyLink(company)}}">{{company['name']}}</a></td>
+ <td>{{company['revenue']}}</td>
+ </tr>
+ </tbody>
+ </table>
+ </template>
+ </template>
+ <!-- Draw company tab -->
+ <template iterate="tab in tabs.sublist(1)">
+ <template if="activeTab == tab">
+ <template if="tab['userValue'] == null">
+ Loading...
+ </template>
+ <template if="tab['userValue'] != null">
+ <x-company-info company="{{tab['userValue']}}" route="{{companyRoute.newHandle()}}"></x-company-info>
+ </template>
+ </template>
+ </template>
+ </template>
+ <script type="application/dart" src="portfolio.dart"></script>
+ </element>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698