Skip to content

Instantly share code, notes, and snippets.

@gvidon
Last active August 29, 2015 14:05
Show Gist options
  • Save gvidon/e6b03c261dbe0d190b93 to your computer and use it in GitHub Desktop.
Save gvidon/e6b03c261dbe0d190b93 to your computer and use it in GitHub Desktop.
External call of component method
<body>
<tasks-list></tasks-list>
<script>window.addEventListener('polymer-ready', function() {
document.querySelector('tasks-list').reset(new Backbone.Collection([
{title: 'Minification deployment script'},
{title: 'Refine Vagrantfile'},
{title: 'Fix header markup'}
]))
})</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment