O'Reilly logo

KnockoutJS by Example by Adnan Jaswal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Viewing personal information

The last user story for this chapter is about displaying the personal information to the user. The personal information includes user's first name, last name, phone number, e-mail address, and postal address. We are instructed to display this information in a form. The user should not be able to edit the information in the form. The user story to be able to edit the personal information will come at a later stage.

Let's start by retrieving the personal information form the server data and constructing our model. The data for personal information is retrieved from the sever side as part of the server.getMemberData call. We need to extract this data and set it in our model. Update the model and add attributes for first ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required