Last active
August 29, 2015 14:14
-
-
Save nevir/74e8178c9d4af629f0fc to your computer and use it in GitHub Desktop.
This file contains hidden or 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 src="jquery" as="$"> | |
<import src="squid.html" element-as="my-squid"> | |
<my-squid></my-squid> |
This file contains hidden or 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
<script type="module"> | |
import Squid from 'squid.html' | |
document.registerElement('my-squid', Squid) | |
</script> | |
<my-squid></my-squid> |
This file contains hidden or 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 src="tentacle.html" element-as="x-tentacle"> | |
<import src="ink.html" element-as="x-ink"> | |
<template> | |
<x-template></x-template> | |
<x-ink></x-ink> | |
</template> | |
<script type="module"> | |
export default class Squid extends HTMLElement { | |
// ... | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment