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() { var data = this.functionInfoData.createRecord(); this.functionInfo.setModel(data); return this.functionInfo.model; }, templateName : 'function-info/input'});