#101 String Interpolation

This is not really an Ember tip but still very good to know.  You don’t have to write ugly code for string concatenation any more.

Old Way:

New Way (note the forward tick instead of single or double quote):

This is possible thanks to ES2015/ES6 and you can learn more about it over here.  This works out-of-the-box in your ember cli project because of ember-cli-babel package.

Published by

Emad Ibrahim

Author of asp .net MVC & TDD, entrepreneur, passionate technologist, programmer and productivity nut. more at http://t.co/oSJXPvzu