Can Polymer bundled components convive in the same page?

10 views
Skip to first unread message

Jose Carlos Vílchez

unread,
Oct 19, 2017, 7:44:48 AM10/19/17
to Polymer
Hi, im trying to develop multiple bundled components in Polymer (each one with all dependencies) in the same HTML page. The idea is that each component can be a standalone, is this possible?
Can i have my Component1 and my Component2 depending on distinct versions of "iron-ajax" (in example) in the same page?
When i do this, i receive an error in console that says "You are trying to register a duplicate tag", both components works but the second one is using the registered "iron-ajax" by the first one.

Note: iron-ajax is only an example, but can be a own custom element instead.

Jose Carlos Vilchez.

Daniel Llewellyn

unread,
Oct 19, 2017, 10:03:05 AM10/19/17
to Jose Carlos Vílchez, Polymer
​It's not currently possible to have multiple versions of the same element. This is a limitation of the way that web browsers treat JavaScript​.

--
Daniel Llewellyn
Bowl Hat
Reply all
Reply to author
Forward
0 new messages