Skip to content

Instantly share code, notes, and snippets.

@jakemac53 jakemac53/my_element.dart Secret
Last active Aug 29, 2015

What would you like to do?
library my_element;
import 'package:polymer/polymer.dart';
class MyElement extends PolymerElement {
MyElement.created() : super.created();
<!-- Import this file from your HTML files. -->
<link rel="import" href="my_element_nodart.html>
<script type="application/dart" src="my_element.dart"></script>
Import this from your Dart file (same one loaded from my_element.html).
You may want to stick this inside a `src` directory.
<polymer-element name="my-element">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.