Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
@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
You can’t perform that action at this time.