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

Side by Side Diff: packages/js_util/example/js_util.dart

Issue 2119523002: Added full js & js_util packages (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 4 years, 5 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 | « packages/js_util/dist/js_util.min.js ('k') | packages/js_util/example/js_util.html » ('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 import 'dart:html';
2
3 import 'package:js_util/js_util.dart';
4
5 void main() {
6 final jsObj = toJS({
7 'people': [
8 {'firstName': 'Kwang Yul', 'lastName': 'Seo'},
9 {'firstName': 'DoHyung', 'lastName': 'Kim'},
10 {'firstName': 'Kyusun', 'lastName': 'Kim'}
11 ]
12 });
13
14 final people = getValue(jsObj, 'people');
15 final firstPerson = people[0];
16 final text =
17 '${getValue(firstPerson, "firstName")} ${getValue(firstPerson, "lastName") }';
18 document.querySelector('#container').innerHtml = text;
19 }
20
OLDNEW
« no previous file with comments | « packages/js_util/dist/js_util.min.js ('k') | packages/js_util/example/js_util.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698