samedi 27 juin 2015

Cannot access to parent model from child view

I have a problem with my emberjs view. I cannot access to the model defined in the parent view. I have tested with view.parentView.model and this not working

Here is my code :

<div class="allowed_name">{{model.allowed_email_domain}}</div><!-- working -->
{{#each view.content}}
  <h1>{{model.allowed_email_domain}}</h1> <!-- not working -->
{{/each}}

Thank's




Aucun commentaire:

Enregistrer un commentaire