How set data when i call render method?


#1

this.render(modalTemplate, {
into: ‘application’,
outlet: ‘uiModalContent’,
data: data
});

And in template.hbs display data. How can do it?


#2

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


#3

Sorry, but how display data from service to template?