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

Side by Side Diff: src/site/codelabs/darrrt/examples/6-piratebadge/piratebadge.dart

Issue 138823002: Draft of new codelab for review (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: draft=>beta , link for feedback Created 6 years, 11 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 5
6 // Demonstrates: 6 // Demonstrates:
7 // list, maps, random, strings, string interpolation 7 // list, maps, random, strings, string interpolation
8 // cascade, fat arrow, ternary operator 8 // cascade, fat arrow, ternary operator
9 // named constructors 9 // named constructors
10 // optional parameters 10 // optional parameters
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return HttpRequest.getString(path) 142 return HttpRequest.getString(path)
143 .then(_parsePirateNamesFromJSON); 143 .then(_parsePirateNamesFromJSON);
144 } 144 }
145 145
146 static _parsePirateNamesFromJSON(String jsonString) { 146 static _parsePirateNamesFromJSON(String jsonString) {
147 Map pirateNames = JSON.decode(jsonString); 147 Map pirateNames = JSON.decode(jsonString);
148 names = pirateNames['names']; 148 names = pirateNames['names'];
149 appellations = pirateNames['appellations']; 149 appellations = pirateNames['appellations'];
150 } 150 }
151 } 151 }
OLDNEW
« no previous file with comments | « src/site/codelabs/darrrt/darrrt.css ('k') | src/site/codelabs/darrrt/examples/6-piratebadge/piratebadge.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698