fix: added getTitle method

This commit is contained in:
Märt Kalmo 2017-05-18 12:15:48 +03:00
parent e76e49aa61
commit 90465cfbcd
1 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,8 @@
export class Post {
constructor(public title: string, public text: string) {}
getTitle() {
return this.title;
}
}