hino / app / routes / country / 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({
	country : service(),
	countryData : service(),
	store : service(),

	init() {
		this._super(...arguments);
	},

	model() {
		var data = this.countryData.createRecord();
		this.country.setModel(data);
		return this.country.model;
	},

	templateName : 'country/input'});