I am programming an app with AngularJS and wanted to know how to push an item from one array into another array.
Here is sample code:
$scope.tasks = [
{title: "Do the dishes"},
{title: "Walk the dog"},
];
$scope.addToTasksDone = function() {// IM FAILNG HERE};
$scope.tasksDone = [];
How can I push the item with value "Do the dishes" to the tasksDone array?
splice
it, after that push it to another array – Pankaj Parkar Jul 2 at 10:03