I'd like to use a library in my angular project that provides sliders written in javascript/jQuery. Therefore I would write a directive inside my project, with a certain interface to use the library-functionality. I would load the library source file in my index html. That would make the library globally available.
I would use this library in my other angular projects as well, so I'd like to create an Angular-Module (own project) with the directive so I can inject it in every project as module-dependency. Unfortunately I have no idea where to load the library and how the structure of this Angular-Module should be. Do I have to load the library inside the directives template?
template.html:
<script src="libraries/jquery-slider.js></script>
<my-slider></my-slider>
Or do I have to load/inject the jQuery-library in a different way, to get access to its functionality?