'Reduce the scope of a javascript library

In my Angular app, I made a component that can show a very specific format of images and that need an external js library, which I import in <head>.

The problem is, that js lib uses jQuery and messes with my html with very unwise jQuery selectors that match my own code.

Is there a way to limit the scope of that library ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source