Created
July 17, 2013 00:05
-
-
Save nikgraf/6016403 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:mdv/mdv.dart' as mdv; | |
void main() { | |
mdv.initialize(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:polymer/polymer.dart'; | |
class CountdownClock extends CustomElement { | |
var timeLeft = new Duration(seconds: 72); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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