I am trying to build simple ember application. I used the cache FIXTURES for rendering the data in template. But, I dont what am doing wrong in this template.
Template Code:
{{#each}}
<option>{{mname}}</option>
{{/each}}
Js code:
timeZoneApp.CalendarboxRoute = Ember.Route.extend({
model: function() {
return this.store.findAll('calendarbox');
}
});
You forgot to actually define the route:
timeZoneApp.Router.map(function() {
this.resource('calendarbox', {path: '/'});
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.