Skip to content

Instantly share code, notes, and snippets.

@devoncarew
Last active May 14, 2017 10:01
Show Gist options
  • Save devoncarew/9126d5d48ebabf5bf547 to your computer and use it in GitHub Desktop.
Save devoncarew/9126d5d48ebabf5bf547 to your computer and use it in GitHub Desktop.
helloworld html
<!-- Copyright 2015 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<h2>Hello world</h2>
<p>Hello world <span id="count"></span>!</p>
// Copyright 2015 the Dart project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
import 'dart:html';
void main() {
var count = querySelector('#count');
for (int i = 0; i < 4; i++) {
count.text = '${i}';
print('hello ${i}');
}
}
/* Copyright 2015 the Dart project authors. All rights reserved. */
/* Use of this source code is governed by a BSD-style license */
/* that can be found in the LICENSE file. */
p {
color: #888;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment