File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- import { Location } from '@angular/common' ;
109import { ESCAPE } from '@angular/cdk/keycodes' ;
1110import { OverlayRef } from '@angular/cdk/overlay' ;
11+ import { Location } from '@angular/common' ;
12+ import { Injectable } from '@angular/core' ;
1213import { merge , Observable , Subject } from 'rxjs' ;
1314import { filter , take } from 'rxjs/operators' ;
1415import { MatBottomSheetContainer } from './bottom-sheet-container' ;
1516
1617
17- /**
18- * Reference to a bottom sheet dispatched from the bottom sheet service.
19- */
18+ /** Reference to a bottom sheet dispatched from the bottom sheet service. */
19+ @Injectable ( )
2020export class MatBottomSheetRef < T = any , R = any > {
2121 /** Instance of the component making up the content of the bottom sheet. */
2222 instance : T ;
Original file line number Diff line number Diff line change 99import { ESCAPE } from '@angular/cdk/keycodes' ;
1010import { GlobalPositionStrategy , OverlayRef } from '@angular/cdk/overlay' ;
1111import { Location } from '@angular/common' ;
12+ import { Injectable } from '@angular/core' ;
1213import { Observable , Subject } from 'rxjs' ;
1314import { filter , take } from 'rxjs/operators' ;
1415import { DialogPosition } from './dialog-config' ;
@@ -20,9 +21,8 @@ import {MatDialogContainer} from './dialog-container';
2021// Counter for unique dialog ids.
2122let uniqueId = 0 ;
2223
23- /**
24- * Reference to a dialog opened via the MatDialog service.
25- */
24+ /** Reference to a dialog opened via the MatDialog service. */
25+ @Injectable ( )
2626export class MatDialogRef < T , R = any > {
2727 /** The instance of component opened into the dialog. */
2828 componentInstance : T ;
Original file line number Diff line number Diff line change 77 */
88
99import { OverlayRef } from '@angular/cdk/overlay' ;
10+ import { Injectable } from '@angular/core' ;
1011import { Observable , Subject } from 'rxjs' ;
1112import { MatSnackBarContainer } from './snack-bar-container' ;
1213
@@ -17,9 +18,8 @@ export interface MatSnackBarDismiss {
1718 dismissedByAction : boolean ;
1819}
1920
20- /**
21- * Reference to a snack bar dispatched from the snack bar service.
22- */
21+ /** Reference to a snack bar dispatched from the snack bar service. */
22+ @Injectable ( )
2323export class MatSnackBarRef < T > {
2424 /** The instance of the component making up the content of the snack bar. */
2525 instance : T ;
You can’t perform that action at this time.
0 commit comments