Sha256: 061f9a3120f1da235d467e32d6c70422476b69d4351ece8146cca1927f1c0116

Contents?: true

Size: 472 Bytes

Versions: 14

Compression:

Stored size: 472 Bytes

Contents

import classic from "ember-classic-decorator";
import Route from "@ember/routing/route";
import Message from "client-app/models/message";
import { preloadOrAjax } from "client-app/lib/utilities";

@classic
export default class ShowRoute extends Route {
  model(params) {
    return preloadOrAjax("/show/" + params.id + ".json");
  }

  setupController(controller, model) {
    super.setupController(...arguments);
    controller.set("model", Message.create(model));
  }
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
logster-2.20.0 client-app/app/routes/show.js
logster-2.19.1 client-app/app/routes/show.js
logster-2.19.0 client-app/app/routes/show.js
logster-2.18.1 client-app/app/routes/show.js
logster-2.18.0 client-app/app/routes/show.js
logster-2.17.1 client-app/app/routes/show.js
logster-2.17.0 client-app/app/routes/show.js
logster-2.16.0 client-app/app/routes/show.js
logster-2.15.0 client-app/app/routes/show.js
logster-2.14.0 client-app/app/routes/show.js
logster-2.13.1 client-app/app/routes/show.js
logster-2.13.0 client-app/app/routes/show.js
logster-2.12.2 client-app/app/routes/show.js
logster-2.12.1 client-app/app/routes/show.js