聚合物库加载失败

时间:2017-08-10 04:28:38

标签: polymer polymer-1.0

我使用google-youtube库在聚合物中创建了一个youtube元素。我在id中使用了youtube-element YouTube视频,但视频显示但已消失。 我签入console,显示错误:

Library Load failed:failed to load Library Cannot GET /bower_components/polymer/polymer-micro.html.js

我删除了这个库并使用bower install再次安装了这个库,但我仍然遇到同样的错误。我无法加载youtube-element。 谁能帮到这里?

youtube-element.html的代码

<link rel="import" href="../../bower_components/polymer/polymer.html">

<dom-module id="youtube-element">
  <template>
    <style>
      :host {
        display: block;
      }
    </style>

    <h1 class="heading" >MY YouTube Videos</h1>
      <paper-material class="mid" elevation="1">
        <google-youtube
          video-id="HgJ0XCyBwzY"
          height="270px"
          width="480px"
          rel="0"
          start="5"
          autoplay="0">
        </google-youtube>

      </paper-material>
    </template>
    <script>
      Polymer({
        is: 'youtube-element',
        properties: {
          foo: {
            type: String,
            value: 'youtube-element',
            notify: true
          }
        }
      });
    })();
  </script>
</dom-module>

0 个答案:

没有答案
相关问题