UNPKG

ember-blog

Version:

Adds a static blog to any Ember CLI app, supporting posts written in Markdown and HTMLBars

19 lines (13 loc) 375 B
import Ember from 'ember'; export default Ember.Route.extend({ model: function(params) { return this.store.find('author', { urlString: params.urlString }); }, setupController: function(controller, model) { var author = model.get('content.firstObject'); controller.setProperties({ author: author, model: author.get('posts') }); }, });