I'm trying to add event-lister on iron-ajax component but it gives error 

> <template is="dom-bind" id="t">
>                   <style>
>                     paper-card{
>                       max-width: 24%;
>                     }
>                   </style>
>                   <style is="custom-style" include="iron-flex"></style>
>                   <iron-ajax id="aj" auto
>                     
> url="https://www.googleapis.com/youtube/v3/search?part=snippet&q=polymer&key=AIzaSyAuecFZ9xJXbGDkQYWBmYrtzOGJD-iDIgI&type=video";
>                     handle-as="json"
>                     last-response="{{ajaxResponse}}"
>                     on-response="hanleResponse"
>                     debounce-duration="300"></iron-ajax>
>                     <script>
>                     var t = document.querySelector('#t');
>                     var aj = document.querySelector('#aj');
>                     
>                     </script>
>           <div   class="video">
>         <template is="dom-repeat" items="[[ajaxResponse.items]]" >
>           <paper-card  heading="[[item.snippet.title]]" 
> image="[[item.snippet.thumbnails.high.url]]">
>             <div class="card-content">
>             <p>[[item.snippet.description]]</p>
>             </div>
>           </paper-card>
>         </template>
>       </div>
>     </template>

<script>
>                   
>                     var aj = document.querySelector('#aj');
>                   

 aj.addEventListener('dataRecived',function(){

     console.log('ssss');

  })

  
>                     </script> 

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/ed12603c-1673-4cb2-a308-52cb62bdf03d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to