I did my first knockout.js application http://jsfiddle.net/Pqs7e/
For display application parts (books section, about section) I use jquery $(“#id”).show(). I feel this is not right way. How can I do this through the mechanism of the viewmodel?
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.
I would do it with special state observable which would identify which div to show:
Then you just bind it like this:
and switch between states like this: