Created
October 28, 2015 15:02
-
-
Save ripla/2a28777815ae336e8c8b 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
<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