Guest User

Untitled

a guest
Feb 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. import { from } from 'rxjs';
  2.  
  3. interface Car {
  4. id: string;
  5. name: string;
  6. }
  7.  
  8. const carsArray: Car[] = [
  9. { id: 'xyz', name: 'Mazda' },
  10. { id: 'abc', name: 'Porsche' }
  11. ];
  12.  
  13. from(carsArray).subscribe();
Add Comment
Please, Sign In to add comment