ember-ghost
Version:
Fully-functional, SEO friendly static site implementation of a blog system built on Ember.
14 lines (12 loc) • 339 B
JavaScript
import Route from '@ember/routing/route';
export default Route.extend({
classNames: ["author-template"],
model(params) {
// load content first for ember-data autopopulation
return this.store.query('content', {
path: 'content',
}).then(() => {
return this.store.findRecord('author', params.id)
});
},
});