Polymer and working with external JavaScript libraries

With the Shadow DOM, I can easily use external CSS frameworks such as bootstrap, and this only applies to my scope (see here ).

However, this does not apply to JavaScript libraries as far as I know. If, for example, I need to work with jQuery on my web component, I basically make it available for the entire page. What is the recommended way to work with external JavaScript libraries using Polymer? How should I handle cases where my web component (which is distributed via bower) needs one version of foo.js and the consumer needs another?

+4
source share
1 answer

JavaScript, .

  • , js. .
  • , . . Babel with, ( ).
0

All Articles