All i am doing is making a week calendar type (Sun, Mon, Tue...) with their start time and stop time... format in html and sending to DB
front view
Here this is the view.. suppose when a user wanted to set his work timing.. sun 1:PM to 4:00 PM and in monday 10:00AM to 6:00PM
how to send data like this {"Schedule":["sunday","01:00","04:00"],["monday","10:00","05:00"]}

modelasarrayin this case. Declare$scope.data = [];in controller and assign theindexat run time.model arrayyou can use it anywhere