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

Side by Side Diff: sky/examples/stocks/stock.sky

Issue 954503002: Morph "appish" example into a "stocks" app (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « sky/examples/stocks/index.sky ('k') | sky/examples/stocks/stocks.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!--
2 // Copyright 2015 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 -->
6 <import src="/sky/framework/sky-element.sky" />
7
8 <sky-element attributes="ticker:string">
9 <template>
10 <style>
11 </style>
12 <div id="ticker" />
13 </template>
14 <script>
15 import "dart:sky";
16
17 @Tagname('stock')
18 class Stock extends SkyElement {
19 Element _ticker;
20
21 void shadowRootReady() {
22 _ticker = shadowRoot.getElementById('ticker');
23 _ticker.textContent = ticker;
24 }
25 }
26
27 _init(script) => register(script, Stock);
28 </script>
29 </sky-element>
OLDNEW
« no previous file with comments | « sky/examples/stocks/index.sky ('k') | sky/examples/stocks/stocks.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698