Polymer and working with external JavaScript Libraries -


with shadow dom, can use external css frameworks bootstrap nicely , apply scope nice (example here).

however, doesn't apply javascript libraries far know. if i, example, need work jquery on web component, make available entire page. recommend way work external javascript libraries polymer? how should handle cases web component (which distributed through bower) needs 1 version of foo.js , consumer needs another?

there no javascript encapsulation solutions know of.

  1. check if js encapsulation solutions exist, e.g. check zonejs , alternatives.
  2. you may require devote time it. e.g. i've encapsulated babel with statement shown here (not tested).

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -