vendredi 7 octobre 2016

Ember issue passing data to template using this.render

I want to render a template using render() and want to pass some data(model)

I get the data in template if I pass the parameter as model model: this.controllerFor(this.routeName).someModel

this.render('my-template', {
  into: 'application',
  outlet: 'flyout',
  model: this.controllerFor(this.routeName).someModel
}); 

But the below does not work. Is there some restriction on naming for the passed model ?

this.render('my-template', {
  into: 'application',
  outlet: 'flyout',
  myModel: this.controllerFor(this.routeName).someModel
}); 




Aucun commentaire:

Enregistrer un commentaire