0

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

enter image description here

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"]}

5
  • You should use model as array in this case. Declare $scope.data = []; in controller and assign the index at run time. Commented Sep 6, 2016 at 7:41
  • any plukner or material to read it? Commented Sep 6, 2016 at 7:43
  • stackoverflow.com/questions/21631700/… Commented Sep 6, 2016 at 7:46
  • and what about the data sending part? Commented Sep 6, 2016 at 7:47
  • I guess once you assign the values in model array you can use it anywhere Commented Sep 6, 2016 at 7:49

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.