Here I added sample for Move Items From One List to Another
While Am move the Item that time I need to set flag as 'D' for moving item from where I am moving and I need to set flag as 'A' for moved item. I tried but If I change the object both place it affected can any one help me on this...
for eg:- I tried to move Alpha left to right
In left side object:-
$scope.items = [
{
"Key": 0,
"Description": "Alpha",
"flag": "D"
},
{
"Key": 1,
"Description": "Beta",
"flag": "E"
},
{
"Key": 2,
"Description": "Gamma",
"flag": "E"
},
{
"Key": 3,
"Description": "Delta",
"flag": "E"
},
{
"Key": 4,
"Description": "Epsilon",
"flag": "E"
}
];
In Right side object:-
$scope.items1 = [
{
"Key": 5,
"Description": "Zeta",
"flag": "E"
},
{
"Key": 6,
"Description": "Eta",
"flag": "E"
},
{
"Key": 0,
"Description": "Alpha",
"flag": "A"
}
];