Files
kredits-web/app/routes/proposals/new.js
T
fsmanuel 45044c0f61 Refactor controller and route
I’m not sure how the queryParams are used so I removed them. I’m happy to readd them.
2018-04-08 02:01:10 +02:00

16 lines
365 B
JavaScript

import injectService from 'ember-service/inject';
import Route from 'ember-route';
export default Route.extend({
kredits: injectService(),
setupController(controller, model) {
this._super(...arguments);
this.get('kredits').getContributors()
.then((contributors) => {
this.controller.set('contributors', contributors);
});
}
});