From 8465441e576d0705eb03449b1ad451cb5ee0241f Mon Sep 17 00:00:00 2001 From: mmalerba Date: Tue, 21 May 2019 10:40:18 -0700 Subject: [PATCH] Revert "refactor: mark injectable refs with `@Injectable` (#15584)" This reverts commit 0908be7aeaeb86a7155122fe3a1546ea26f2e560. --- src/material/bottom-sheet/bottom-sheet-ref.ts | 8 ++++---- src/material/dialog/dialog-ref.ts | 6 +++--- src/material/snack-bar/snack-bar-ref.ts | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/material/bottom-sheet/bottom-sheet-ref.ts b/src/material/bottom-sheet/bottom-sheet-ref.ts index 890eb5460394..258de1fcd332 100644 --- a/src/material/bottom-sheet/bottom-sheet-ref.ts +++ b/src/material/bottom-sheet/bottom-sheet-ref.ts @@ -6,17 +6,17 @@ * found in the LICENSE file at https://angular.io/license */ +import {Location} from '@angular/common'; import {ESCAPE} from '@angular/cdk/keycodes'; import {OverlayRef} from '@angular/cdk/overlay'; -import {Location} from '@angular/common'; -import {Injectable} from '@angular/core'; import {merge, Observable, Subject} from 'rxjs'; import {filter, take} from 'rxjs/operators'; import {MatBottomSheetContainer} from './bottom-sheet-container'; -/** Reference to a bottom sheet dispatched from the bottom sheet service. */ -@Injectable() +/** + * Reference to a bottom sheet dispatched from the bottom sheet service. + */ export class MatBottomSheetRef { /** Instance of the component making up the content of the bottom sheet. */ instance: T; diff --git a/src/material/dialog/dialog-ref.ts b/src/material/dialog/dialog-ref.ts index b3f3fcf09617..490e5699480d 100644 --- a/src/material/dialog/dialog-ref.ts +++ b/src/material/dialog/dialog-ref.ts @@ -9,7 +9,6 @@ import {ESCAPE} from '@angular/cdk/keycodes'; import {GlobalPositionStrategy, OverlayRef} from '@angular/cdk/overlay'; import {Location} from '@angular/common'; -import {Injectable} from '@angular/core'; import {Observable, Subject} from 'rxjs'; import {filter, take} from 'rxjs/operators'; import {DialogPosition} from './dialog-config'; @@ -21,8 +20,9 @@ import {MatDialogContainer} from './dialog-container'; // Counter for unique dialog ids. let uniqueId = 0; -/** Reference to a dialog opened via the MatDialog service. */ -@Injectable() +/** + * Reference to a dialog opened via the MatDialog service. + */ export class MatDialogRef { /** The instance of component opened into the dialog. */ componentInstance: T; diff --git a/src/material/snack-bar/snack-bar-ref.ts b/src/material/snack-bar/snack-bar-ref.ts index bafef04c53fe..e8f8d800c4f7 100644 --- a/src/material/snack-bar/snack-bar-ref.ts +++ b/src/material/snack-bar/snack-bar-ref.ts @@ -7,7 +7,6 @@ */ import {OverlayRef} from '@angular/cdk/overlay'; -import {Injectable} from '@angular/core'; import {Observable, Subject} from 'rxjs'; import {MatSnackBarContainer} from './snack-bar-container'; @@ -18,8 +17,9 @@ export interface MatSnackBarDismiss { dismissedByAction: boolean; } -/** Reference to a snack bar dispatched from the snack bar service. */ -@Injectable() +/** + * Reference to a snack bar dispatched from the snack bar service. + */ export class MatSnackBarRef { /** The instance of the component making up the content of the snack bar. */ instance: T;