145
rated 0 times
[
146]
[
1]
/ answers: 1 / hits: 21726
/ 9 Years ago, wed, july 1, 2015, 12:00:00
I have an array of strings, I use this code to add a new item
$scope.list.push(name);
But I don't want to add only the name, I want to do something like
$scope.list.push(data); // data contain name and age
How can I create data object ?
More From » angularjs