The MVC application returns a JSON REsult which contains a JSON object. For knockout 2 way binding to work it requires ko.observable(“value”).
Is there a way we can set two way binding to the JSON Object returned from MVC?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
While you can manually loop through your structure and create appropriate observables, you will probably want to look at the mapping plugin described here: http://knockoutjs.com/documentation/plugins-mapping.html