I spot a couple problems straight-off. They're shown inline.

On Tuesday, 15 September 2015 17:40:05 UTC+1, Fasasi Faiz wrote:
>
> Please help me out! I was unable to load data from my "data.json" file 
> into my polymer controls
> =====================================================================
>
>
> <link rel="import" href="bower_components/polymer/polymer.html">
> <link rel="import" href="bower_components/iron-ajax/iron-ajax.html">
>
> <dom-module id="list-binding">
>   <style></style>
>   
>  <template is="dom-bind">
>

remove is="dom-bind" - that is used for anonymous templates.
     

>      <iron-ajax 
>         auto
>         url="data.json"
>         handle-as="json"
>         last-response="{{data}}">
>      </iron-ajax>
>      
>      <!--Binding from API-->
>      <div class="list">
>         <template is="dom-repeat" items="{{data}}">
>          <paper-icon-item class="listItems">
>           <img class="avatar blue" item-icon src="{{item.image}}">
>             <paper-item-body two-line>
>                 <div class="title">{{item.title}}</div>
>                 <div secondary>{{item.description}}</div>
>             </paper-item-body>
>         </paper-icon-item>
>         </template>
>     </div>
>   </template>
>     
> <script>
>     
>   Polymer({
>     is: "list-binding",,
>     ready: function() 
>         
>       }
>   });
>

There's syntax errors here.

</script>
>     
> </dom-module>
>

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/94558c3d-b6e4-4f91-b00e-8eda2e97a930%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to