Is it possible to share mixins across web components (and imports) in Polymer?

前端 未结 2 679
梦谈多话
梦谈多话 2021-02-06 03:32

As a follow up to How to extend multiple elements with Polymer and Polymer multiple inheritence/composition, based on their answers, I wonder if it\'s possible to share mixins a

2条回答
  •  醉酒成梦
    2021-02-06 04:20

    This is now addressed by the Behaviors feature.

    Example:

    my-behavior.html:

    
    

    my-element.html:

    
    
    
    

    my-other-element.html:

    
    
    
    

提交回复
热议问题