I have an ember controller as follows
App.IndexController = Ember.Controller.extend({
edwin:{
uno:'hola',
dos:'hola dos',
tres:'hola tres'
}
});
I my template I need the value of the property edwin, if I get the property as
<script type="text/x-handlebars" data-template-name="index">
{{edwin.dos}}
</script>
It works fine, but I need to select the object element from other variable, when I try
<script type="text/x-handlebars" data-template-name="index">
{{edwin['dos']}}
</script>
or
<script type="text/x-handlebars" data-template-name="index">
{{edwin[myvar]}}
</script>
I can't display the value this is my jsbin
http://emberjs.jsbin.com/xupuse/1/edit
any suggestions