I have a JS library with some functions like this:
function TestService() {
}
TestService.init = function() {
------
}
TestService.foo = function() {
--------------
}
Now this is an old library and would like to use these functions in angular code. Is there a way we can wrap it up as service/factory and use it properly? Appreciate help in advance.