Skip to content

Commit 85fb9e9

Browse files
mmalerbaandrewseguin
authored andcommitted
docs(snackbar): correct docs for MatSnackbarConfig#viewContainerRef (#18564)
(cherry picked from commit 2e78658)
1 parent 9210f74 commit 85fb9e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/material/snack-bar/snack-bar-config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ export class MatSnackBarConfig<D = any> {
3232
*/
3333
announcementMessage?: string = '';
3434

35-
/** The view container to place the overlay for the snack bar into. */
35+
/**
36+
* The view container that serves as the parent for the snackbar for the purposes of dependency
37+
* injection. Note: this does not affect where the snackbar is inserted in the DOM.
38+
*/
3639
viewContainerRef?: ViewContainerRef;
3740

3841
/** The length of time in milliseconds to wait before automatically dismissing the snack bar. */

0 commit comments

Comments
 (0)