Skip to content

Instantly share code, notes, and snippets.

@jakemac53
Last active August 29, 2015 14:16
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 jakemac53/6db65176335242581b4e to your computer and use it in GitHub Desktop.
Save jakemac53/6db65176335242581b4e to your computer and use it in GitHub Desktop.
@HtmlImport('my_element_nodart.html')
library my_element;
import 'package:polymer/polymer.dart';
@CustomTag('my-element')
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">
<template>
</template>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment