Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. export class Item {
  2. constructor(
  3. public id: string,
  4. public date: Date,
  5. public title: string,
  6. ) {}
  7. }
  8.  
  9. export class Collection {
  10. items: Item[] = []
  11.  
  12. getValue() {
  13. return this.items
  14. }
  15.  
  16. add(item: Item) {
  17. this.items.push(item)
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement