Just started Ember tutorial, and I'd like to return a dictionary like this:
export default Ember.Route.extend({
model() {
var blah={"name":"other"}
return blah;
}
renderTemplate() {
this.render('yo');
}
});
but the Ember compiler is complaining saying:
routes/posts.js: line 8, col 3, Expected '}' to match '{' from line 2 and instead saw 'renderTemplate'.
What have I done wrong and how do I fix?
Aucun commentaire:
Enregistrer un commentaire