Ember.js log helper

Written on March 23, 2017

I’ve been developing with Ember.js for about 3 years now and can confidently claim that I’m still a newb. While watching a video on Ember Screencasts the other day, I noticed a template helper being used called log. The log helper can be used in a template file (.hbs) to log a property in your browser’s console.

{{log someProperty}}

This is much more helpful then what I’ve been doing, which was setting up things like observers on a property to log them on the browser’s console. Definitely using the log helper has improved my workflow, if you’ve never used the log helper like I have, I highly recommend checking it out.

Stay in touch

Thanks for reading this article. I'd love to stay in touch and share more tips on programming and side projects with you. Sign up and I'll send you my articles straight to your email, you'll also get a free copy of the light themed version of my Git cheat sheet.
Git cheat sheet preview image