Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export interface Notification {
  2.   id: string;
  3.   icon: Icon;
  4.   label: string;
  5.   colorClass: string;
  6.   read?: boolean;
  7. }
  8.  
  9.  
  10.  
  11.   notifications: Notification[] = [
  12.     {
  13.       id: '125',
  14.       label: 'New OrderReceived',
  15.       icon: icShoppingBasket,
  16.       colorClass: 'text-primary-500'
  17.     }
  18.   ];
  19.  
  20.  
  21. this.http.get<Notification>(api).subscribe((data: Notification) => {console.log(data)}
  22.  
  23. //DATA
  24. colorClass: "text-primary-500"
  25. โ€‹icon: "icFileCopy"
  26. id: "12"
  27. label: "New OrderReceived"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement