67
rated 0 times
[
74]
[
7]
/ answers: 1 / hits: 18348
/ 8 Years ago, sat, july 2, 2016, 12:00:00
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?
More From » arrays