September 2015
Intermediate to advanced
268 pages
5h 35m
English
The second feature is about retrieving and displaying the address details. To implement this feature, we will:
Let's get started by modifying the model we created previously to capture address details. First, create a generic function to construct the address model. The address model should have attributes that you want to capture and display, such as street number and name. Here is our implementation:
/* generic model for address */ var AddressModel = function() { this.location = ko.observable(); this.streetNumber = ko.observable(); this.streetName ...Read now
Unlock full access