ember-blog
Version:
Adds a static blog to any Ember CLI app, supporting posts written in Markdown and HTMLBars
16 lines (10 loc) • 343 B
JavaScript
import Ember from 'ember';
export default Ember.Route.extend({
setupController: function(controller, model) {
var authors = this.store.find('author');
var categories = this.store.find('category');
this._super(controller, model);
controller.set('authors', authors);
controller.set('categories', categories);
},
});