fix: added getTitle method

This commit is contained in:
Märt Kalmo 2017-05-18 12:15:48 +03:00
parent e76e49aa61
commit 90465cfbcd

View File

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