Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export class Item {
- constructor(
- public id: string,
- public date: Date,
- public title: string,
- ) {}
- }
- export class Collection {
- items: Item[] = []
- getValue() {
- return this.items
- }
- add(item: Item) {
- this.items.push(item)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement