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