feat(di): change the params of Provider and provide to start with "use"
Closes #4684
This commit is contained in:
@ -174,7 +174,7 @@ export class DirectiveProvider extends ResolvedProvider_ {
|
||||
}
|
||||
|
||||
static createFromType(type: Type, annotation: DirectiveMetadata): DirectiveProvider {
|
||||
var provider = new Provider(type, {toClass: type});
|
||||
var provider = new Provider(type, {useClass: type});
|
||||
return DirectiveProvider.createFromProvider(provider, annotation);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user