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