feat(di): change the params of Provider and provide to start with "use"
Closes #4684
This commit is contained in:
@ -55,7 +55,7 @@ export class MdDialog {
|
||||
// Create the dialogRef here so that it can be injected into the content component.
|
||||
var dialogRef = new MdDialogRef();
|
||||
|
||||
var bindings = Injector.resolve([provide(MdDialogRef, {asValue: dialogRef})]);
|
||||
var bindings = Injector.resolve([provide(MdDialogRef, {useValue: dialogRef})]);
|
||||
|
||||
var backdropRefPromise = this._openBackdrop(elementRef, bindings);
|
||||
|
||||
|
Reference in New Issue
Block a user