I found a solution by looking at angular tests. A provider now looks like 
this:

let provider = {provide: myToken, useClass: myClass};



I personnally prefers the class approach which makes the API discoverable.

On Thursday, June 16, 2016 at 6:55:18 PM UTC+2, Denis Dollfus wrote:
>
>
> As Provider class becomes deprecated in Angular 2 rc2, what's the advised 
> replacement for using with
>
> ReflectiveInjector.resolveAndCreate(Provider[])
>
> ?
>
> Thanks !
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to