I'm having trouble displaying my model's fixture data on the template. When I attempt to use an each loop in the template, I encounter the error mentioned above:
{{#each}}
{{title}}
{{/each}}
This is how I've set up my router:
Application.Router.map(function() {
this.resource('application', { path: '/' });
});
Application.ApplicationRoute = Ember.Route.extend({
model: function() {
return this.store.find('applicationmodel');
}
});
Here is how my model looks:
Application.ApplicationModel = DS.Model.extend({
title: DS.attr('string')
});
Application.ApplicationModel.FIXTURES = [
{
id: 1,
title: 'title-1'
},
{
id: 2,
title: 'title-2'
}
];
Could someone point out where I might be going wrong?
Appreciate any help!