Skip to content

Instantly share code, notes, and snippets.

@ripla
Created October 28, 2015 15:02
Show Gist options
  • Save ripla/2a28777815ae336e8c8b to your computer and use it in GitHub Desktop.
Save ripla/2a28777815ae336e8c8b to your computer and use it in GitHub Desktop.
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="seed-element.html">
<dom-module id="outer-element">
<template>
<seed-element id="seed" on-seed-element-lasers="underAttack"></seed-element>
</template>
<script>
Polymer({
is: 'outer-element',
underAttack: function(e) {
console.log("We're under fire!");
},
attached: function() {
this.$.seed.fireLasers();
}
});
</script>
</dom-module>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment