February 2015
Intermediate to advanced
232 pages
4h 40m
English
You also need to validate the customer data. These are the rules for validation:
To achieve this task, make some updates in the code, as follows:
models/Customer.js file:var firstName = ko.observable('').extend({
required: true
});
var lastName = ko.observable('').extend({
required: true,
minLength: 3
}); var fullName = ko.computed(function(){ return firstName() + ' ' + lastName(); }); var address = ko.observable(''). ...Read now
Unlock full access