From 90465cfbcd271080f3bf5d1c5448d4e7d1df32a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A4rt=20Kalmo?= Date: Thu, 18 May 2017 12:15:48 +0300 Subject: [PATCH] fix: added getTitle method --- post.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/post.ts b/post.ts index 299871c..c0d6e1f 100644 --- a/post.ts +++ b/post.ts @@ -1,3 +1,8 @@ export class Post { constructor(public title: string, public text: string) {} + + getTitle() { + return this.title; + } + }