Defining static value in array in angular

You have to define objects and then push them into your array.

For example:

$scope.restaurant.day = [];
day1 = {'date':'11/10/2016'};
$scope.restaurant.day.push(day1);

Leave a Comment