Looking for a way to utilize an old JS library containing functions like the following in Angular code:
function TestService() {
}
TestService.init = function() {
------
}
TestService.foo = function() {
--------------
}
Is there a method to encapsulate these functions as a service or factory to integrate them effectively? Any assistance would be greatly appreciated.