File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ export class Dialog {
266
266
. set ( this . injector . get ( DIALOG_CONTAINER ) , dialogContainer )
267
267
. set ( DIALOG_DATA , config . data ) ;
268
268
269
- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
269
+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
270
270
injectionTokens . set ( Directionality , {
271
271
value : config . direction ,
272
272
change : observableOf ( )
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ export class MatBottomSheet {
146
146
injectionTokens . set ( MatBottomSheetRef , bottomSheetRef ) ;
147
147
injectionTokens . set ( MAT_BOTTOM_SHEET_DATA , config . data ) ;
148
148
149
- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
149
+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
150
150
injectionTokens . set ( Directionality , {
151
151
value : config . direction ,
152
152
change : observableOf ( )
Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export class MatDialog {
289
289
. set ( MAT_DIALOG_DATA , config . data )
290
290
. set ( MatDialogRef , dialogRef ) ;
291
291
292
- if ( ! userInjector || ! userInjector . get ( Directionality , null ) ) {
292
+ if ( ! userInjector || ! userInjector . get < Directionality | null > ( Directionality , null ) ) {
293
293
injectionTokens . set ( Directionality , {
294
294
value : config . direction ,
295
295
change : observableOf ( )
You can’t perform that action at this time.
0 commit comments