I am developing an application using the knockout.js framework. I have one view model:
var MyViewModel= {
Id: ko.observable(),
CountryCode: ko.observable(),
NormalizedAddress:
{
COUNTRY_CODE: ko.computed(function () { return this.CountryCode(); }),
Street: ko.observable(),
ZipCode: ko.observable(),
AreaCode: ko.observable(),
Town: ko.observable(),
Description: ko.observable()
}
When I run my application, I get one exception:
0x800a01b6 - JavaScript runtime error: the object does not support the property or method 'CountryCode'
Can you help me solve my problem?
Thank you so much Marco
source
share