How do I import Polymer elements into code playgrounds like plunker (plnkr.co), jsBin and jsFiddle?

后端 未结 2 1222
抹茶落季
抹茶落季 2021-01-07 10:05

Question:

In this Plunk, I want to import the Polymer 1.0 elements and .

H

2条回答
  •  被撕碎了的回忆
    2021-01-07 10:50

    Use this cdn to import your elements/scripts: https://github.com/Download/polymer-cdn

    so, your imports would be (dependent on the version you would like to use):

    
    
    
    
    

    If you just need a reference to polymer for your component then import this:

    
    

    This is working in plunker for me.

提交回复
热议问题