Created
March 13, 2015 01:11
-
-
Save DaveVoyles/e51d84d6afad3554eff7 to your computer and use it in GitHub Desktop.
polymer-ready event
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
<head> | |
<link rel="import" href="path/to/x-foo.html"> | |
</head> | |
<body> | |
<x-foo></x-foo> | |
<script> | |
window.addEventListener('polymer-ready', function(e) { | |
var xFoo = document.querySelector('x-foo'); | |
xFoo.barProperty = 'baz'; | |
}); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment