To include self-contained third-party libraries, utilize the value
method.
angular.module('your.app')
.value('yourLib', yourLib);
In your controller or service, inject it using the standard Dependency Injection approach.
angular.module('your.app')
.controller('YourController', YourController);
YourController.$inject = ['yourLib'];
function YourController(yourLib) {
//. . .
}
If the third-party library is a constructor function that needs to be instantiated with 'new', consider creating a factory or provider with a method that passes parameters to the constructor and returns a new instance.
Edit
When integrating PapaParse, remember to register it in the Angular injector using the value
method.