-
-
Save jakemac53/6db65176335242581b4e 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
@HtmlImport('my_element_nodart.html') | |
library my_element; | |
import 'package:polymer/polymer.dart'; | |
@CustomTag('my-element') | |
class MyElement extends PolymerElement { | |
MyElement.created() : super.created(); | |
} |
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 this file from your HTML files. --> | |
<link rel="import" href="my_element_nodart.html> | |
<script type="application/dart" src="my_element.dart"></script> |
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 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