this.render(modalTemplate, {
into: ‘application’,
outlet: ‘uiModalContent’,
data: data
});
And in template.hbs display data. How can do it?
this.render(modalTemplate, {
into: ‘application’,
outlet: ‘uiModalContent’,
data: data
});
And in template.hbs display data. How can do it?
If you are using this.render
inside the renderTemplate
hook of a route, your route will have a model hook.
If you are using it somewhere else, this is an error. Use a component / service based approach, or something like ember-modal-dialog instead
Sorry, but how display data from service to template?