title: Use @Inject data in useFactory function for provider in angular
body: <p>I have two class MomentDateAdaptar and my custom DateAdaptor class. i want to use one of them base on current language. how i must implement the usefactory function for that?</p>