mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
Revert "refactor: mark injectable refs with @Injectable" (#16079)
This reverts commit 0908be7aea.
This commit is contained in:
@@ -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<T = any, R = any> {
|
||||
/** Instance of the component making up the content of the bottom sheet. */
|
||||
instance: T;
|
||||
|
||||
@@ -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<T, R = any> {
|
||||
/** The instance of component opened into the dialog. */
|
||||
componentInstance: T;
|
||||
|
||||
@@ -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<T> {
|
||||
/** The instance of the component making up the content of the snack bar. */
|
||||
instance: T;
|
||||
|
||||
Reference in New Issue
Block a user