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 ...

Get KnockoutJS by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.