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);
More Related Contents:
- Reloading the page gives wrong GET request with AngularJS HTML5 mode
- AngularJS ui router passing data between states without URL
- Angularjs ng-model doesn’t work inside ng-if
- AngularJs event to call after content is loaded
- What is the difference between ng-app and data-ng-app?
- Error with $http.get in angularJS — Success not a Function [duplicate]
- Does my ng-model really need to have a dot to avoid child $scope problems?
- How to generate url encoded anchor links with AngularJS?
- Using Bootstrap for Angular and Material design for Angular together
- calling method of parent controller from a directive in AngularJS
- AngularJS – How can I do a redirect with a full page load?
- How to simulate a drag and drop action in protractor?
- How do I store a current user context in AngularJS?
- $apply already in progress error
- Math functions in AngularJS bindings
- Clear History and Reload Page on Login/Logout Using Ionic Framework
- How to return image from $http.get in AngularJS
- What is the Angular ui-router lifecycle? (for debugging silent errors)
- How do I create an AngularJS UI bootstrap popover with HTML content?
- How to getText on an input in protractor
- How do I handle right-click events in angular.js?
- AngularJS $watch vs $watchCollection: which is better for performance?
- Why give an “abstract: true” state a url?
- Set URL query parameters without state change using Angular ui-router
- Couldn’t load template using templateUrl in Angularjs
- How to Set Background image of div with ng-style
- Bootstrap-UI Typeahead display more than one property in results list?
- AngularJS – Injecting factory from another module into a provider
- upload file from angularjs directly to amazon s3 using signed url
- How to pass .env file variables to webpack config?