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 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
9
+ import { Location } from '@angular/common' ;
9
10
import { ESCAPE } from '@angular/cdk/keycodes' ;
10
11
import { OverlayRef } from '@angular/cdk/overlay' ;
11
- import { Location } from '@angular/common' ;
12
- import { Injectable } from '@angular/core' ;
13
12
import { merge , Observable , Subject } from 'rxjs' ;
14
13
import { filter , take } from 'rxjs/operators' ;
15
14
import { MatBottomSheetContainer } from './bottom-sheet-container' ;
16
15
17
16
18
- /** Reference to a bottom sheet dispatched from the bottom sheet service. */
19
- @Injectable ( )
17
+ /**
18
+ * Reference to a bottom sheet dispatched from the bottom sheet service.
19
+ */
20
20
export class MatBottomSheetRef < T = any , R = any > {
21
21
/** Instance of the component making up the content of the bottom sheet. */
22
22
instance : T ;
Original file line number Diff line number Diff line change 9
9
import { ESCAPE } from '@angular/cdk/keycodes' ;
10
10
import { GlobalPositionStrategy , OverlayRef } from '@angular/cdk/overlay' ;
11
11
import { Location } from '@angular/common' ;
12
- import { Injectable } from '@angular/core' ;
13
12
import { Observable , Subject } from 'rxjs' ;
14
13
import { filter , take } from 'rxjs/operators' ;
15
14
import { DialogPosition } from './dialog-config' ;
@@ -21,8 +20,9 @@ import {MatDialogContainer} from './dialog-container';
21
20
// Counter for unique dialog ids.
22
21
let uniqueId = 0 ;
23
22
24
- /** Reference to a dialog opened via the MatDialog service. */
25
- @Injectable ( )
23
+ /**
24
+ * Reference to a dialog opened via the MatDialog service.
25
+ */
26
26
export class MatDialogRef < T , R = any > {
27
27
/** The instance of component opened into the dialog. */
28
28
componentInstance : T ;
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import { OverlayRef } from '@angular/cdk/overlay' ;
10
- import { Injectable } from '@angular/core' ;
11
10
import { Observable , Subject } from 'rxjs' ;
12
11
import { MatSnackBarContainer } from './snack-bar-container' ;
13
12
@@ -18,8 +17,9 @@ export interface MatSnackBarDismiss {
18
17
dismissedByAction : boolean ;
19
18
}
20
19
21
- /** Reference to a snack bar dispatched from the snack bar service. */
22
- @Injectable ( )
20
+ /**
21
+ * Reference to a snack bar dispatched from the snack bar service.
22
+ */
23
23
export class MatSnackBarRef < T > {
24
24
/** The instance of the component making up the content of the snack bar. */
25
25
instance : T ;
You can’t perform that action at this time.
0 commit comments