From b501531e80b307c9c4ff06f0331a7a71abadd51e Mon Sep 17 00:00:00 2001 From: Ruslan Yakhyaev Date: Mon, 17 Feb 2014 11:17:51 +0100 Subject: [PATCH] Chapter 3: Property as a function --- js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 470a531..8f163ae 100755 --- a/js/app.js +++ b/js/app.js @@ -11,5 +11,9 @@ App.IndexRoute = Ember.Route.extend({ }); App.IndexController = Ember.Controller.extend({ - siteTitle: 'Welcome to Emberoverflow' + siteTitle: 'Welcome to Emberoverflow', + + currentTime: function() { + return(new Date); + } }); \ No newline at end of file