Created
August 13, 2014 11:28
-
-
Save stefan-jonker/1f74103de4308489933e 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
<head> | |
<link rel="import" href="path/to/x-foo.html"> | |
</head> | |
<body> | |
<x-foo></x-foo> | |
<script> | |
// http://www.polymer-project.org/docs/polymer/polymer.html#polymer-ready | |
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
How to select a Polymer-element.