Is there anything special about a dom-bind template and receiving custom
events?
For instance my default index.html looks like
<template is="dom-bind" id="app">
<iron-pages selected="0">
<div>one</div>
<div>
<smartbuzz-app on-hasGroupOrTarget="{{gort}}"></smartbuzz-app>
</div>
</iron-pages>
</template>
<!-- build:js scripts/app.js -->
<script src="scripts/app.js"></script>
<!-- endbuild-->
In the app.js
var app = document.querySelector('#app');
app.gort = function(){
console.log('caught fire');
var pages = document.querySelector('iron-pages');
pages.selectNext();
}
And fired in the <smartbuzz-app>
ready: function(){
console.log('fired');
this.fire('hasGroupOrTarget');
},
Perhaps I have the on-hasGroupOrTarget="{{gort}} wrong?
Thanks for your time
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/7d0c1857-7a44-4097-8cfa-ed09a7dea0ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.