lundi 24 octobre 2016

Ember render without or empty layout

Good day

I'm trying to render a view template without layout or into empty layout without success.

Here is my code in the route:

renderTemplate: function(controller, model){
    this.render('my_view_template', {// the template to render, referenced by name
        into: 'other_layout', // the template to render into, referenced by name
        outlet: 'main' // the outlet inside `options.template` to render into.
    })
}

I get an error message: other_layout cannot be found.

other_layout.hbs is into templates folder and it has:



any idea?

Thanks.




Aucun commentaire:

Enregistrer un commentaire