custom.js.es6 236 B

1234567891011
  1. import { findCustomWizard } from '../models/custom-wizard';
  2. export default Ember.Route.extend({
  3. model(params) {
  4. return findCustomWizard(params.name);
  5. },
  6. afterModel(model) {
  7. this.replaceWith('step', model.start);
  8. }
  9. });