Skip to content

Instantly share code, notes, and snippets.

@nummi
Last active October 21, 2015 16:26
Show Gist options
  • Select an option

  • Save nummi/0d9e6f63d4836cc1f727 to your computer and use it in GitHub Desktop.

Select an option

Save nummi/0d9e6f63d4836cc1f727 to your computer and use it in GitHub Desktop.
// pods/paper/task/index/route.js
model(params) {
return this.store.find(params.task_id);
},
setupController(controller, model) {
this._super(controller, model);
controller.set('componentName', model.get('some-property-we-can-use'));
}
<!-- pods/paper/task/index/template.hbs -->
{{#ember-modal-dialog}}
{{component componentName task=model}}
{{/ember-modal-dialog}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment