How to get the email of current user using currentUser template?

I’m just getting started with Meteor and I am customizing user login/sign up. I want to display the email of the current logged in user with the currentUser template.

I have done {{currentUser.emails[0].address}}. But I get an exception from tracker recompute function.
Error: Can’t call non-function: [object Object]
at (spacebars-runtime.js:136)
at Spacebars.mustacheImpl (spacebars-runtime.js:70)
at Object.Spacebars.mustache (spacebars-runtime.js:74)
at null._render (template.navigation.js:25)
at doRender (view.js:351)
at view.js:199
at Function.Template._withTemplateInstanceFunc (template.js:457)
at view.js:197
at Object.Blaze._withCurrentView (view.js:538)
at viewAutorun (view.js:196)
I remember the {{currentUser}} template calls the Meteor.user() function, and when I try Meteor.user().email[0].address on the console, it shows me the email of the current logged in user. I want the email to be displayed in the HTML. How to I do that?


Thanks a lot… that worked.