Guest User

Untitled

a guest
May 21st, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. this.sampleStringErrorMsg = 'The sample is not valid:n' +
  2. '- The key and key value are required in the sample.n ' +
  3. '- The delimiter must be entered when the sample contains several key-value pairs.n' +
  4. '- The delimiter must not be equal to the key or key value.n';
  5.  
  6. this.snackBar.open(this.sampleStringErrorMsg, null, {
  7. verticalPosition: 'top'
  8. });
  9.  
  10. this.snackBar.openFromComponent(SnackbarErrorComponent, {
  11. verticalPosition: 'top'
  12. });
  13.  
  14. constructor(@Inject(MAT_SNACK_BAR_DATA) public data: any) { }
  15.  
  16. this.snackBar.openFromComponent(SnackbarErrorComponent, {
  17. verticalPosition: 'top',
  18. data: <YOUR_DATA_HERE>
  19. });
Add Comment
Please, Sign In to add comment