Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. import { Injectable } from '@angular/core';
  2.  
  3. @Injectable()
  4. export class ToastrNameService {
  5. getToastrNames() {
  6. return TOASTRNAMES;
  7. }
  8. constructor() { }
  9. }
  10. let TOASTRNAMES = [
  11. {
  12. id: 1,
  13. name: "Success",
  14. buttonDesc: "Show Sucsess Toaster",
  15. cardId:"sucsess",
  16. buttonId:"sucsess-button"
  17. },
  18. {
  19. id: 2,
  20. name: "Info",
  21. buttonDesc: "Show Info Toaster",
  22. cardId:"info",
  23. buttonId:"info-button"
  24. },
  25. {
  26. id: 3,
  27. name: "Warning",
  28. buttonDesc: "Show Warning Toaster",
  29. cardId:"warning",
  30. buttonId:"warning-button"
  31. },
  32. {
  33. id: 4,
  34. name: "Error",
  35. buttonDesc: "Show Error Toaster",
  36. cardId:"error",
  37. buttonId:"error-button"
  38. },
  39. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement