Hi All
below code for having the array of list like in controller
(function () {
'use strict';
angular
.module('tapplent')
.controller('TaskController', taskController);
function taskController($scope){
$scope.response = [
{
Name: 'John Smith',
Gender: 'M',
Location: 'Wales',
desc:'task1 desc',
startdate:'task1 date',
duedate:'task1 duedate'
},
{
Name: 'Sally Smith',
Gender: 'F',
Location: 'USA',
desc:'task2 desc',
startdate:'task2 date',
duedate:'task2 duedate'
},
{
Name: 'Curtis Timson',
Gender: 'M',
Location: 'England',
desc:'task3 desc',
startdate:'task3 date',
duedate:'task3 duedate'
}
];
}
})
and for display it i have code like in html
<h2></h2>
<div ng-controller="TaskController">
<ul>
<li ng-repeat="user in response"><a href="#" data-ng-click="ShowId($event)">{{user.Name}}</a> <br> {{user.Location}} <h2>______</h2>
</li>
</ul>
</div>
my issue is that based on the click first item, seccond item or third item
eg Name: 'John Smith',
i want to display the corresponnding
desc:'task1 desc', startdate:'task1 date', duedate:'task1 duedate' at right of the web page.
left side i want list of items and right side coreponsding list of item details
thanks and regards siddu