Skip to content

Instantly share code, notes, and snippets.

@johnpryan
Created January 9, 2018 21:34
Show Gist options
  • Save johnpryan/860b8f988582daf209330ef80f9ffa10 to your computer and use it in GitHub Desktop.
Save johnpryan/860b8f988582daf209330ef80f9ffa10 to your computer and use it in GitHub Desktop.
IntelliJ templates for PolymerDart
@HtmlImport('${NAME}.html')
library ${NAME};
import 'package:polymer/polymer.dart';
import 'package:web_components/web_components.dart';
@PolymerRegister(${CLASS_NAME}.tag)
class ${CLASS_NAME} extends PolymerElement {
static const String tag = '${TAG_NAME}';
${CLASS_NAME}.created() : super.created();
}
<dom-module id="${TAG_NAME}">
<style>
</style>
<template>
</template>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment