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.
- check if js encapsulation solutions exist, e.g. check zonejs , alternatives.
- you may require devote time it. e.g. i've encapsulated babel
with
statement shown here (not tested).
Comments
Post a Comment