2015-12-03 3 views

答えて

10

ありがとうございます。polygitありがとうございます。ここで

あなたがフォークすることができます定型例です:https://jsfiddle.net/kaycebasques/2q3fqehz/

HTML:

<base href="https://polygit.org/components/"> 
<script src="webcomponentsjs/webcomponents-lite.min.js"></script> 
<link href="polymer/polymer.html" rel="import"> 

<dom-module id="x-example"> 
    <template> 
    <style> 
     :host { 
     display: block; 
     } 
    </style> 
    <h1>polyfiddle</h1> 
    </template> 
</dom-module> 

<x-example></x-example> 

JS:

// only need this when in the main document and on non-Chrome 
addEventListener('WebComponentsReady', function() { 
    Polymer({ 
    is: 'x-example' 
    }); 
}); 
+1

使用 '<基本のhref =" http://polygit.org/polymer+ :master/components/">"をマスターとして参照してください! :) –

+0

jsfiddleは私のために働いていません。ファイルを取得しようとするとERR_CONNECTION_REFUSEDが出る – Gilberg

+0

@Gilbergそれは今働いている... [polygit](https://github.com/PolymerLabs/polygit)の管理者が、ここ数週間で問題を引き起こしていて、なぜあなたはそのエラーを見ていたのかを説明します。 –

関連する問題