@@ -7,6 +7,7 @@ import {Component, ElementRef, NgModule} from '@angular/core';
7
7
import {
8
8
MatAutocompleteModule ,
9
9
MatBadgeModule ,
10
+ MatBottomSheetModule ,
10
11
MatButtonModule ,
11
12
MatButtonToggleModule ,
12
13
MatCardModule ,
@@ -41,6 +42,7 @@ import {
41
42
MatTabsModule ,
42
43
MatToolbarModule ,
43
44
MatTooltipModule ,
45
+ MatBottomSheet ,
44
46
} from '@angular/material' ;
45
47
import { BrowserModule } from '@angular/platform-browser' ;
46
48
import { ServerModule } from '@angular/platform-server' ;
@@ -59,7 +61,7 @@ export class TableDataSource extends DataSource<any> {
59
61
@Component ( {
60
62
template : `<button>Do the thing</button>`
61
63
} )
62
- export class TestDialog { }
64
+ export class TestEntryComponent { }
63
65
64
66
65
67
@Component ( {
@@ -80,10 +82,12 @@ export class KitchenSink {
80
82
dialog : MatDialog ,
81
83
viewportRuler : ViewportRuler ,
82
84
focusMonitor : FocusMonitor ,
83
- elementRef : ElementRef < HTMLElement > ) {
85
+ elementRef : ElementRef < HTMLElement > ,
86
+ bottomSheet : MatBottomSheet ) {
84
87
focusMonitor . focusVia ( elementRef . nativeElement , 'program' ) ;
85
88
snackBar . open ( 'Hello there' ) ;
86
- dialog . open ( TestDialog ) ;
89
+ dialog . open ( TestEntryComponent ) ;
90
+ bottomSheet . open ( TestEntryComponent ) ;
87
91
88
92
// Do a sanity check on the viewport ruler.
89
93
viewportRuler . getViewportRect ( ) ;
@@ -98,6 +102,7 @@ export class KitchenSink {
98
102
BrowserModule . withServerTransition ( { appId : 'kitchen-sink' } ) ,
99
103
MatAutocompleteModule ,
100
104
MatBadgeModule ,
105
+ MatBottomSheetModule ,
101
106
MatButtonModule ,
102
107
MatButtonToggleModule ,
103
108
MatCardModule ,
@@ -135,8 +140,8 @@ export class KitchenSink {
135
140
CdkTableModule
136
141
] ,
137
142
bootstrap : [ KitchenSink ] ,
138
- declarations : [ KitchenSink , TestDialog ] ,
139
- entryComponents : [ TestDialog ] ,
143
+ declarations : [ KitchenSink , TestEntryComponent ] ,
144
+ entryComponents : [ TestEntryComponent ] ,
140
145
} )
141
146
export class KitchenSinkClientModule { }
142
147
0 commit comments