import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import BaseRoute from 'hino-hearts/routes/base'; export default BaseRoute.extend({ categoryUio : service(), categoryUioData : service(), store : service(), init() { this._super(...arguments); }, async model(params) { this.categoryUio.setModel(null); return await this.categoryUioData.getData(params.id) .then(response => { this.categoryUio.setModel(response); return response; }); }, templateName : 'category-uio/input'});