hino / app / routes / employee-information / create.js
create.js
Raw
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';

import BaseRoute from 'hino-hearts/routes/base';

export default BaseRoute.extend({
    employeeInformation : service(),
    init() {
        this._super(...arguments);
    },
    model() {        
        var data = this.store.createRecord('employee-information');
        this.employeeInformation.setModel(data);
        return this.employeeInformation.model;
    },
    templateName : 'employee-information/input'
});