ga-wdi-boston / ember-object

Explore the Ember Object Model, and leverage it to do some basic binding through computed properties.
Other
1 stars 112 forks source link

Use consistent strategy for template strings #12

Closed jrhorn424 closed 8 years ago

jrhorn424 commented 8 years ago

Template strings are used in introductory examples. Code examples like the following:

const Person = Ember.Object.extend({
  sayHello: function(){
    return "Hi, my name is " + this.get('name');
  }
});

Should become:

const Person = Ember.Object.extend({
  sayHello: function(){
-    return "Hi, my name is " + this.get('name');
+    return `Hi, my name is ${this.get('name')}`;
  }
});
RealWeeks commented 8 years ago

@jrhorn424 updated in commit c3dcee5