Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.sampleStringErrorMsg = 'The sample is not valid:n' +
- '- The key and key value are required in the sample.n ' +
- '- The delimiter must be entered when the sample contains several key-value pairs.n' +
- '- The delimiter must not be equal to the key or key value.n';
- this.snackBar.open(this.sampleStringErrorMsg, null, {
- verticalPosition: 'top'
- });
- this.snackBar.openFromComponent(SnackbarErrorComponent, {
- verticalPosition: 'top'
- });
- constructor(@Inject(MAT_SNACK_BAR_DATA) public data: any) { }
- this.snackBar.openFromComponent(SnackbarErrorComponent, {
- verticalPosition: 'top',
- data: <YOUR_DATA_HERE>
- });
Add Comment
Please, Sign In to add comment