import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import BaseRoute from 'hino-hearts/routes/base'; export default BaseRoute.extend({ hoyuPdiApproval : service(), hoyuPdiApprovalData : service(), store : service(), init() { this._super(...arguments); }, model() { var data = this.hoyuPdiApprovalData.createRecord(); this.hoyuPdiApproval.setModel(data); return this.hoyuPdiApproval.model; }, templateName : 'hoyu-pdi-approval/input'});