@@ -66,7 +66,7 @@ export class DevelopSharedServiceComponent {
6666 openSnackBar ( ) {
6767 this . shared . openSnackBar ( {
6868 msg : this . getValOrReturnDefault ( this . snackbar . snackBarMsg , 'I\'m a snackbar!' ) ,
69- additionalOpts : {
69+ config : {
7070 horizontalPosition : this . snackbar . horizontalPosition ,
7171 verticalPosition : this . snackbar . verticalPosition ,
7272 panelClass : this . snackbar . panelClass
@@ -78,7 +78,7 @@ export class DevelopSharedServiceComponent {
7878 openErrorSnackBar ( ) {
7979 this . shared . openSnackBar ( {
8080 msg : this . getValOrReturnDefault ( this . snackbar . snackBarMsg , 'Error: Something happened' ) ,
81- additionalOpts : {
81+ config : {
8282 duration : 5000
8383 }
8484 } ) ;
@@ -87,7 +87,7 @@ export class DevelopSharedServiceComponent {
8787 openDurationSnackBar ( ) {
8888 this . shared . openSnackBar ( {
8989 msg : this . getValOrReturnDefault ( this . snackbar . snackBarMsg , 'I\'m a duration snackbar!' ) ,
90- additionalOpts : {
90+ config : {
9191 duration : this . snackbar . duration ? this . snackbar . duration : 5000 ,
9292 horizontalPosition : this . snackbar . horizontalPosition ,
9393 verticalPosition : this . snackbar . verticalPosition ,
@@ -101,8 +101,7 @@ export class DevelopSharedServiceComponent {
101101 const snackBarRef = this . shared . openSnackBar ( {
102102 msg : this . getValOrReturnDefault ( this . snackbar . snackBarMsg , 'I\'m a snackbar with an action!' ) ,
103103 action : this . snackbar . action ,
104- additionalOpts :
105- {
104+ config : {
106105 horizontalPosition : this . snackbar . horizontalPosition ,
107106 verticalPosition : this . snackbar . verticalPosition ,
108107 panelClass : this . snackbar . panelClass
0 commit comments