Polymer paper-menu with Angular2

后端 未结 1 1306
鱼传尺愫
鱼传尺愫 2021-01-24 08:14

I\'m trying to user Polymer v1.0 elements with Angular2 beta3 and I\'m having issues. Some elements work fine, such as input boxes.

However, when I try and use paper-me

相关标签:
1条回答
  • 2021-01-24 08:59

    You have to import all the elements you're using.

    The imports were missing for

    • paper-item
    • paper-listbox

    I also think it's important to import full polyfills

    <script src="https://cdn.rawgit.com/download/polymer-cdn/1.1.4/lib/webcomponentsjs/webcomponents.js"></script>
    

    instead of lite

        <script src="https://cdn.rawgit.com/download/polymer-cdn/1.1.4/lib/webcomponentsjs/webcomponents-lite.js"></script>
    

    Plunker example of the fixed example.

    0 讨论(0)
提交回复
热议问题