Can I use Polymer and Brick together?

There are several excellent components provided by Brick and others provided by Polymer . Is it technically possible to use them together?

+6
source share
4 answers

x-tags (the foundation for Brick) and Polymer use exactly the same polyfields, but x-tags uses a smaller set.

Brick itself comes as one miniature JS file, so the distribution does not work with Polymer (if you download brick.min.js and platform.js , there is a polyfill collision).

However, the x tags themselves can work with Polymer. If you load platform.js (poly regiments), then x-tag-core (x-tag sugar layer), you can import Polymer elements and load x-tags together without any problems.

This process can be simplified by importing, but x-tags / brick does not come with supporting import files (but we are trying to do this). There is an article http://www.polymer-project.org/articles/polymer-xtag-vanilla.html with additional information and some examples.

+9
source

Yes, you can use Brick and Polymer for 100%, see this code - http://www.polymer-project.org/articles/polymer-xtag-vanilla.html and Code - https://github.com/x- tag / interop-examples

Without import, here is the flow

Here you go, For this see Jsfiddle! http://jsfiddle.net/nsisodiya/266tt/

 <head> <script src="http://rawgit.com/Polymer/platform/0.2.4/platform.js" type="text/javascript"></script> <link href="http://rawgit.com/mozilla/brick/1.0.1/dist/x-tag-flipbox.css" type="text/css" rel="stylesheet"> <script src="http://rawgit.com/x-tag/core/1.0.0-beta-4/src/core.js" type="text/javascript"></script> <script src="http://rawgit.com/mozilla/brick/1.0.1/dist/x-tag-flipbox.js" type="text/javascript"></script> </head> 
+1
source

Absolutely! What is the beauty of web components: the internal implementation of a component does not make sense outside of this component. For the rest of the world, this is just another DOM element that has attributes and properties and fires events.

Refresh . This will be the case when the specifications of web components are implemented initially in browsers. As long as Brick and Polymer use the same basic policies for these features, however, I cannot get them to work together (see here ). This probably means that they use several different versions of polypoluses.

0
source

Unfortunately, no more.

The brick has been leaving since 2014, according to MDN itself .

0
source

All Articles