blob: 5d708beab17456c92c63db2d8037b6a84682c23a [file] [log] [blame]
import 'dart:convert';
import 'dart:html';
void main() {
var span = querySelector('#count') as SpanElement;
HttpRequest.getString('/api').then((value) {
return json.decode(value);
}).then((obj) {
var count = obj['count'];
span.text = count.toString();
});
}