【发布时间】:2014-10-02 17:36:43
【问题描述】:
谁能帮助我如何将生成的预编译把手显示到特定视图?
var aboutData= [{...}, ...];
App.Router.map(function() {
this.resource('about);
});
// When navigating to url: www.../#/about
// This whole thing generates a view appended to the body
// I want the generated handlebars to be appended somewhere specific
App.aboutDataRoute = Ember.Route.extend({
model: function() {
return aboutData;
}
});
【问题讨论】:
标签: ember.js routes handlebars.js router