Polymer.Dart is the Dart version of Polymer Project, a client-side library that uses the latest web technologies to let you create custom HTML elements. Build anything from a button to a complete application as an encapsulated, reusable element that works across desktop and mobile.
In this one-hour code lab, you'll create a risk game composed of a Web Socket server and an Polymer.Dart web app.
It's a shorter version of Risk Codelab.
Try the live demo.
Important: Polymer.dart is in beta, and its API is subject to change. This code lab uses Polymer.dart version 0.15.5.
This code lab has the following sections:
- Step 0: Set up
- Step 1: Basics
- Step 2: Classes
- Step 3: First custom element
- Step 4: Players list
- Step 5: Map
- Step 6: Put it all together
- Risk rules
- A Tour of the Dart Language
- Dart API Reference
- Polymer.dart
- Polymer Snippets
- Polymer JavaScript project
The creators of this code lab include:
- +Alexandre Ardhuin
- +Guillaume Girou, Dart Evangelist @Sfeir
- +Mathieu Breton, @Xebia
- +Nicolas Francois, Dart Evangelist @Sfeir
Thanks to the +DartlangFr team.