Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

The demos don't actually make use of the Polymer object. #54

Open
agnibha opened this issue Dec 16, 2014 · 0 comments
Open

The demos don't actually make use of the Polymer object. #54

agnibha opened this issue Dec 16, 2014 · 0 comments

Comments

@agnibha
Copy link

agnibha commented Dec 16, 2014

Had to sift through multiple searches to finally come across http://stackoverflow.com/questions/24359417/polymer-loading-core-ajax-inside-an-element

Shouldn't the core-ajax demo look something like:

<html>
<head>

  <title>core-ajax</title>

  <script src="../webcomponentsjs/webcomponents.js"></script>
  <link rel="import" href="../polymer/polymer.html">
  <link rel="import" href="core-ajax.html">

</head>
<body>
  <polymer-element name="youtube-list">
    <template>
      <core-ajax auto url="//gdata.youtube.com/feeds/api/videos/" 
        params='{"alt":"json", "q":"chrome"}'
        handleAs="json" response="{{responses}}"></core-ajax>

      <template repeat="{{responses.feed.entry}}">
        <div>{{title.$t}}</div>
      </template>
    </template>
    <script>
    Polymer();
    </script>
  </polymer-element>
  <youtube-list/>
</body>
</html>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant