Skip to content

Instantly share code, notes, and snippets.

@nikgraf
Created July 17, 2013 00:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikgraf/6016403 to your computer and use it in GitHub Desktop.
Save nikgraf/6016403 to your computer and use it in GitHub Desktop.
import 'package:mdv/mdv.dart' as mdv;
void main() {
mdv.initialize();
}
import 'package:polymer/polymer.dart';
class CountdownClock extends CustomElement {
var timeLeft = new Duration(seconds: 72);
}
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<element name="countdown-clock" extends="div">
<template>
{{ timeLeft.inSeconds }}
</template>
<script type="application/dart" src="countdown_clock.dart">
</script>
</element>
</body>
</html>
name: alarm
description: A sample WebUI application
dependencies:
browser: any
mdv: any
polymer: any
shadow_dom: any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment