import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; export default Route.extend({ functionInfo : service(), functionInfoData : service(), store : service(), init() { this._super(...arguments); }, model(params) { this.functionInfo.setModel(null); return this.functionInfoData.getData(params.id) .then(response => { this.functionInfo.setModel(response); return response; }); }, });