In AngluarJS I used to write my shared components so that the services they used (i.e. some ajax-lib) were injected and therefore exchangable from the outside.
In vue-js I always see field imports in the component’s scripts. And sometimes I see the arguments those imported modules might take being delegated by the components props.
I was wondering if this is best practice or maybe there are concepts how to pass in services to a component (i.e. passing a complete function in as a prop).
I avoided using the term DI on purpose, since that is not necessarily what I am aiming at.