I'm trying to do something pretty simple, but I don't know how to do it..
I have created a fiddle to show where I am stuck : http://jsfiddle.net/NQKvy/982/
I have an array of item :
[
{title: 'Kris', key: '0', description: 'This is the Kris'},
{title: 'Luke', key: '1', description: 'This is the Luke'},
{title: 'Alex', key: '2', description: 'This is the Alex'}
];
With this template :
<script type="text/x-handlebars" data-template-name="application">
{{#each item in model}}
<a href="#" {{action 'selectionItem' item.key}}>
{{item.title}}
</a><br/>
{{/each}}
<div>
<!-- Display the description here -->
</div>
</script>
Inside the div I would like to display just one description. When the page load I would like to display the first item.description from the list, but when the user click on any item I would like to display the description related.
e.g : The default description here would be : "This is the Kris", if I click on Alex, it will display "This is the Alex" etc..
It is a very simple thing to do, but I'm stuck..